Meteor REST APIs with JsonRoutes

I’m not sure i follow you there.

HTTP.call throws an error when it gets a response with a http code of 400+ (the equivalent of statusCode yes). The response can have or not data , but the http code represents an http error. HTTP.call returns that code as statusCode on the response object inside the error it throws.

1 Like

Yep, you follow, that’s exactly what I was looking for.

This should sum it up I think. :smiley:

1 Like

I updated the example applciation to incorporate what we discussed here.

Hey @aadams sorry for sitting silent all this time but it seems you’re in good hands with excellent comments from @afruth

Yet it seems like you’re still having the problem.

I’m currently swamped with work, but I will have some free time during the weekend and I have a proposition for you :slight_smile:

Since we’ve relaunched our good old meteor university as mentor academy and need to promote it, would you like to do a live debugging session with me where we try to solve your problem and record the screen for public view?

I’ve already been itching to do host some sessions like I used to do, and this meteor rest thing seems to come up a lot. So this would be a good win win win win win situation for a lot of people.

Mind you, this would mean showing parts of your actual code in video.

3 Likes

Thank you for the offer!

I wouldn’t mind at all, although, I only have a test project built with the Web API, I don’t plan to incorporate this tech is into my main project until I’ve flushed out all the bugs and use cases. :slight_smile: (but this project, should be enough for use to work with I would think)

I’d really love to get the token logging into the WebAPI working when the user logs in, so that would we something more to add.

And after that, the next step here is to incorporate the multiple database setup, and if you like we can go through that as well.

I’m free to live session this Saturday or Sunday and my times are very flexable. I live in Houston, that’s CST.

Please let me know what time, and what I need to do in order to prep for the live session. Maybe we can do a pre-flight setup even.

I’m really excited at this opportunity, thank you again! :smiley:

1 Like

Well I don’t mind working on the example repo as long as it demonstrates the problem you’re having.

Let’s have a private chat about scheduling on slack and then we can announce it back here if anyone’s interested.

1 Like

@aadams, i got an error :

W20170813-19:56:46.212(7)? (STDERR)   let user;
W20170813-19:56:46.214(7)? (STDERR)   ^^^
W20170813-19:56:46.216(7)? (STDERR) 
W20170813-19:56:46.218(7)? (STDERR) SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode