-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backend development errors res.status is not a function #96
Comments
What is happening here ? How did you get this error, what are you doing when it is called ? |
sorry I should have put reprod in issue description. We get it when requesting a non-existant endpoint. I noticed it when fixing the image bug. I have noticed it from time to time as well, but for a specific example, spark up dev and then nav to: |
Ill have a look at it. I would suspect that we don't have a catch to catch all errorneous endpoints like that. We have it covered on the frontend, and I don't think you can reprod on live? I suspect on live react router will catch them all. But you're specifically hitting an api endpoint. Which I assume we need to define and just point to a 404 page... |
I agree we probably need a catch all, you mean like a |
That's weird as we do have a catch all on the React-Router side of things.. I thought that would have caught it... |
It looks like our react-router isn't working properly... Hmmmm that's strange... |
it's an api call, so react-router shouldn't get involved, me thinx. |
@vivekimsit @nikrb I think index.js in routes needs a catch all i.e. |
get this type error now and then, not sure what's happening.
The development error handler is invoked but for some reason the response object is invalid - are we not calling it correctly?
The text was updated successfully, but these errors were encountered: