Hello Charles, I think you miss the views in prod for your parser controller and api function...
http://web2py.com/books/default/chapter/29/10/services?search=generic#Generic-views For security reasons the generic views are only allowed to be accessed on localhost. In order to enable the access from remote clients you may need to set the response.generic_patterns. Richard On Fri, May 2, 2014 at 12:13 AM, Charles Levesque < [email protected]> wrote: > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

