Typical code 18 with the ID 10T. That part slipped through my hands. Thanks Richard.
Le vendredi 2 mai 2014 00:13:57 UTC-4, Charles Levesque a écrit : > > Hi everyone, > > I have a problem with my application. It is a function that uses the > @request.restful() decorator. The app gets events from Google Calendar urls > (those are in the sqlite database). For example: if you request (GET) > http://theapiserver/calendar/parser/api/ets.json, you'll get all the > events of the "ets" calendar. > > The problem is when I do the same request locally, it works very well, but > if I test it on my certification server, it fails. It is not a 500. The > message is "*Invalid view (parser/api.html)*" like if I was requesting > the HTML view > but I don't. If you look at the screenshots, you can see that there is > ".json" at the end of the URL. The same thing happens when I replace json > for xml. It works fine locally. > > I debugged it locally and remotely and my code is doing what it's suppose > to do. There is surely something I'm missing on REST services with Web2Py. > > I sent with this message my application and two screenshots (one for > successful local request and one for the remote request that fails). It > would be greatly appreciated if someone could help me. > > You can request the certification server if you want. The address is > appletscertif.cloudapp.net:8000. I did some URL rewrite so instead of > appletscertif.cloudapp.net<http://appletscertif.cloudapp.net/calendar/parser/api/ets> > :8000 <http://appletscertif.cloudapp.net/calendar/parser/api/ets> > /calendar/parser/api/ets, you can simply put > appletscertif.cloudapp.net<http://appletscertif.cloudapp.net/calendar/ets> > :8000 <http://appletscertif.cloudapp.net/calendar/ets>/calendar/ets. > > Thank you for your time. > > Charles > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.