response-length-limit isn't actually implemented yet, it's on my list
of things to do...


On Thu, May 13, 2010 at 06:49, Tad Glines <[email protected]> wrote:
> Your response-length-limit is too short. The units for that value is "bytes"
> and should either be omitted or set to something larger than 1000 (e.g
> 20000). I don't know if that is why the wavesandbox is rejecting your
> request.
>
> My suggestion is to set-up the fedone server and try federating with it.
> That way you can see exactly why the server is rejecting your requests.
>
> -Tad
>
> On Thu, May 13, 2010 at 12:37 AM, jesus salas <[email protected]> wrote:
>>
>> Yes I'm using my own implementation with .Net
>>
>> Then to generate zeroVersion I use, (after look how    public
>> HashedVersion createVersionZero(WaveletName waveletName) do things)
>>
>> byte[] historyHash =
>> URI_CODEC.waveletNameToURI(waveletName).getBytes(CHAR_SET);
>>
>>
>> ProtocolHashedVersion version0 =
>> HashedVersionUtil.GetZeroVersion(waveletName);
>>  -->      version0.version = 0;
>>            version0.history_hash =
>> Encoding.UTF8.GetBytes(waveletUri);
>>   WHERE waveletUri =  "wave://wavesandbox.com/w+1r9hB3GwV/conv+root"
>>
>> resulting on an IQ like:
>>
>> <iq type="get" id="historyHash1" from="wave.wavevs.net"
>> to="wave.wavesandbox.com">
>>  <pubsub xmlns="http://jabber.org/protocol/pubsub";>
>>    <items node="wavelet">
>>      <delta-history xmlns="http://waveprotocol.org/protocol/0.2/
>> waveserver"
>>                     start-version="0"
>>                     start-version-
>> hash="d2F2ZTovL3dhdmVzYW5kYm94LmNvbS93KzFyOWhCM0d3Vi9jb252K3Jvb3Q="
>> <<-- Base64.ToBase64( version0.history_hash )
>>                     end-version="45"
>>                     end-version-hash="SzKlspgnJ77rju34BODq8MmpS5Y="
>> <<--
>> Base64.ToBase64( Document.FirstAvailableDelta.hashed_version.version )
>>                     response-length-limit="100"
>>                     wavelet-name="wave://wavesandbox.com/w+1r9hB3GwV/
>> conv+root"/>
>>    </items>
>>  </pubsub>
>> </iq>
>>
>> But keep returning
>>
>> <iq type="error" id="historyHash1" from="wave.wavesandbox.com"
>> to="wave.wavevs.net" xmlns="jabber:server">
>>  <pubsub xmlns="http://jabber.org/protocol/pubsub";>
>>    <items node="wavelet">
>>      <delta-history start-version="0"
>>                     start-version-
>> hash="d2F2ZTovL3dhdmVzYW5kYm94LmNvbS93KzFyOWhCM0d3Vi9jb252K3Jvb3Q="
>>                     end-version="45"
>>                     end-version-hash="SzKlspgnJ77rju34BODq8MmpS5Y="
>>                     response-length-limit="100"
>>                     wavelet-name="wave://wavesandbox.com/w+1r9hB3GwV/
>> conv+root"
>>                     xmlns="http://waveprotocol.org/protocol/0.2/
>> waveserver" />
>>    </items>
>>  </pubsub>
>>  <error code="503" type="cancel">
>>    <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /
>> >
>>  </error>
>> </iq>
>>
>> I tried also
>>
>> start-version-hash="wave://wavesandbox.com/w+1r9hB3GwV/conv+root"
>>
>> with same result,
>>
>> Can you see something wrong now?
>>
>>
>> Thank you so much in advance.
>>
>> jesus
>>
>>
>>
>>
>>
>> On 13 mayo, 01:03, Tad Glines <[email protected]> wrote:
>> > Your start hash is wrong. Use HashedVersion.versionZero(waveletName).
>> > Or, if
>> > you have implemented your own code, you need to use the URI encoded
>> > wavelet
>> > name as the hash.
>> > So in your case the start-version-hash should probably have been
>> > "wave://
>> > wavesandbox.com/w+1r9hB3GwV/conv".
>> >
>> > Look at HashedVersionZeroFactoryImpl.createVersionZero().
>> >
>> > -Tad
>> >
>> >
>> >
>> >
>> >
>> > On Wed, May 12, 2010 at 3:45 PM, jesus salas <[email protected]>
>> > wrote:
>> > > Hi,
>> >
>> > > I'm federating to wavesandbox.com and when receiving first delta for
>> > > wavelet is version 5.
>> >
>> > > So I try to request 0 to 5 (tried 1 to 5 also), to wavesandbox.com to
>> > > have complete delta list on my server using:
>> >
>> > > <iq type="get" id="historyHash1" from="wave.wavevs.net"
>> > > to="wave.wavesandbox.com">
>> > >  <pubsub xmlns="http://jabber.org/protocol/pubsub";>
>> > >    <items node="wavelet">
>> > >      <delta-history xmlns="http://waveprotocol.org/protocol/0.2/
>> > > waveserver"
>> > >             start-version="0"
>> > >             start-version-hash="AAAAAAAAAAAAAAAAAAAAAAAAAAA="
>> > >             end-version="11"
>> > >             end-version-hash="sZggTUDwdv84saKc5h7Oq3X2wl8="
>> > >             response-length-limit="300000"
>> > >             wavelet-name="wave://wavesandbox.com/w+1r9hB3GwV/conv
>> > > +root"/>
>> > >    </items>
>> > >  </pubsub>
>> > > </iq>
>> >
>> > > wavesandbox just reply:
>> >
>> > > <iq type="error" id="historyHash1" from="wave.wavesandbox.com"
>> > > to="wave.wavevs.net" xmlns="jabber:server">
>> > >  <pubsub xmlns="http://jabber.org/protocol/pubsub";>
>> > >    <items node="wavelet">
>> > >      <delta-history
>> > >          start-version="0"
>> > >          start-version-hash="AAAAAAAAAAAAAAAAAAAAAAAAAAA="
>> > >          end-version="11"
>> > >          end-version-hash="sZggTUDwdv84saKc5h7Oq3X2wl8="
>> > >          response-length-limit="300000"
>> > >          wavelet-name="wave://wavesandbox.com/w+1r9hB3GwV/conv+root"
>> > >          xmlns="http://waveprotocol.org/protocol/0.2/waveserver"; />
>> > >    </items>
>> > >  </pubsub>
>> > >  <error code="503" type="cancel">
>> > >    <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /
>> >
>> > >  </error>
>> > > </iq>
>> >
>> > > some ideas?
>> >
>> > > jesus
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> > > Groups
>> > > "Wave Protocol" group.
>> > > To post to this group, send email to [email protected].
>> > > To unsubscribe from this group, send email to
>> > >
>> > > [email protected]<wave-protocol%2bunsubscr...@goog­legroups.com>
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/wave-protocol?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Wave Protocol" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group
>> > athttp://groups.google.com/group/wave-protocol?hl=en.- Ocultar texto de la
>> > cita -
>> >
>> > - Mostrar texto de la cita -
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Wave Protocol" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/wave-protocol?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Wave Protocol" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/wave-protocol?hl=en.
>



-- 
Anthony Baxter, [email protected]

-- 
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/wave-protocol?hl=en.

Reply via email to