[Seaside] ZnUnknownHttpVersion

Sven Van Caekenberghe sven at stfx.eu
Thu Mar 6 17:24:58 UTC 2014


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
> > 
> >
> 



More information about the seaside mailing list