• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Request failed on ERXRouteController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request failed on ERXRouteController


  • Subject: Re: Request failed on ERXRouteController
  • From: Theodore Petrosky <email@hidden>
  • Date: Mon, 31 Mar 2014 11:32:49 -0400

I imported your tutorial, ran it and I got the same message. So I found the rest tutorial on the wiki.

I think you need to add some data to your database. I would recommend that you follow the instructions that follow "Adding posts and authors with curl". 

you need posts!! I added an author and a post and followed the instructions

curl -X GET http://127.0.0.1:52169/cgi-bin/WebObjects/BlogRest.woa/ra/blogEntries.json
[{"id":1,"type":"BlogEntry","content":"some content here and now","creationDate":"2014-03-31T11:18:02Z","lastModified":"2014-03-31T11:18:02Z","title":"first blog","author":{"id":1,"type":"Author","email":"email@hidden","firstName":"ted","lastName":"petro"}}]


add some authors and posts. Your example is working.

from safari

http://127.0.0.1:52169/cgi-bin/WebObjects/BlogRest.woa/ra/blogEntries.html

[NSMutableArray
  [BlogEntry id=1 type=BlogEntry
    [content=some content here and now]
    [creationDate=2014-03-31 15:18:02 Etc/GMT]
    [lastModified=2014-03-31 15:18:02 Etc/GMT]
    [title=first blog]
    [author id=1 type=Author
      [email=email@hidden]
      [firstName=ted]
      [lastName=petro]
    ]
  ]
]

and this is from your blogRest tutorial. I did no editing.

Ted


On Mar 31, 2014, at 9:47 AM, Fred Opims <email@hidden> wrote:

Hi Bogdan!
Thank you for response.
I’ve put ERXRest.striMode=false, and i have the following message.
Request failed: /cgi-bin/WebObjects/BlogRest.woa, There is no route for the path ''.

I’m adding some route as mentioned in the tutorial, but still have the same message.
I’m following the tutorial step by step and i can’t go further than section “Adding HTML Views for blogs post".
Do i need to do something else ?
I’ve attached the code i did so far. 

Thank you very much
<BlogRest.zip>

On Mar 31, 2014, at 8:20 AM, "Bogdan Zlatanov" <email@hidden> wrote:

Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Request failed on ERXRouteController
      • From: Fred Opims <email@hidden>
References: 
 >Request failed on ERXRouteController (From: dev <email@hidden>)
 >Re: Request failed on ERXRouteController (From: Bogdan Zlatanov <email@hidden>)

  • Prev by Date: Re: Request failed on ERXRouteController
  • Next by Date: Framework for jQueryMobile 1.4.x
  • Previous by thread: Re: Request failed on ERXRouteController
  • Next by thread: Re: Request failed on ERXRouteController
  • Index(es):
    • Date
    • Thread