[Seaside] ZnUnknownHttpVersion

lanvin.kevin at laposte.net lanvin.kevin at laposte.net
Fri Mar 7 09:27:06 UTC 2014


Hello ,
In my main image, I was using the wrong repository to get the configuration.
Now it works perfectly ! 
Thank you for your help.
Have a nice day.
> Message du 06/03/14 18:25
> De : "Sven Van Caekenberghe"
> A : lanvin.kevin at laposte.net
> Copie à : "Seaside - general discussion"
> Objet : Re: [Seaside] ZnUnknownHttpVersion
>
>
> On 06 Mar 2014, at 17:49, lanvin.kevin at laposte.net wrote:
>
> > I've taken a new Pharo 3.0 image on pharo.org
> > Then I loaded Zinc-REST from your repository : http://smalltalkhub.com/#!/~SvenVanCaekenberghe/ZincHTTPComponents
> > I executed the code :
> >
> > | server |
> > server := ZnServer startOn: 1700 .
> > server delegate:
> > (ZnRestServerDelegate new
> > uriSpace: (ZnCallHierarchyRestUriSpace new
> > rootClass: ZnExampleSumRestCall;
> > yourself);
> > yourself).
> > (ZnClient new) get: 'http://localhost:1700/appName?action=&firstParameter=["Value"]&secondParameter=["Value"]&lastParameter={ "Key":["firstValue","secondValue"]}'
> >
> > The error occured.
> > Is there something missing in my image ?
>
> How did you load Zinc-REST ? Manually or using the configuration group ? The proper way is:
>
> ConfigurationOfZincHTTPComponents project latestVersion load: 'REST'.
>
> You might be missing NeoJSON.
>
> > Thank you for your patience
>
> No problem, just trying to help.
>
> > > Message du 06/03/14 17:20
> > > De : "Sven Van Caekenberghe"
> > > A : lanvin.kevin at laposte.net, "Seaside - general discussion"
> > > Copie à :
> > > Objet : Re: [Seaside] ZnUnknownHttpVersion
> > >
> > > Kevin,
> > >
> > > On 06 Mar 2014, at 16:55, lanvin.kevin at laposte.net wrote:
> > >
> > > > It's working on a seaside server, but not on a RestServer.
> > > > This code should show you the problem.
> > > >
> > > > | server |
> > > > server := ZnServer startOn: 1700 .
> > > > server delegate:
> > > > (ZnRestServerDelegate new
> > > > uriSpace: (ZnCallHierarchyRestUriSpace new
> > > > rootClass: ZnExampleSumRestCall;
> > > > yourself);
> > > > yourself).
> > > >
> > > >
> > > >
> > > >
> > > > (ZnClient new) get: 'http://localhost:1700/appName?action=&firstParameter=["Value"]&secondParameter=["Value"]&lastParameter={ "Key":["firstValue","secondValue"]}'
> > >
> > > Which works for me, sorry, it gives:
> > >
> > > a ZnResponse(404 Not Found text/plain;charset=utf-8 34B)
> > >
> > > You still haven't said anything about which versions of Pharo/Zinc you are using, on which platform you are.
> > >
> > > Sven
> > >
> > > > Regards.
> > > > _______________________________________________
> > > > seaside mailing list
> > > > seaside at lists.squeakfoundation.org
> > > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > >
> > >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140307/531a6f8c/attachment.htm


More information about the seaside mailing list