#so a sortBy Parameter is returning a 500 internal server error on postman
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
what is the underlying error ?
the error 500 must come from somewhere right ?
do you get an exception which is causing this error 500 ?
Ah I imagine that’s a httpStatus ?
Internal server error it’s a generic vague one
yes, that's the point of 500
it usually happens if you have an exception happening in your server
so check your server and see if you have an exception
in the log
Yeah
I’m trying to remember the error I was told it was
It’s when a object isn’t pointed to anything
And isn’t initialised
?
error 500 means an exception happened in your server
so check your logs please
and see the exception here
Not on that laptop now
then go on laptop
NullPointerException?
it's not a problem, don't forget the link of this thread in case it closes
Does nullpointerexception help ?
do you know that you have a NPE now ?
What’s that
NullPointerException
how do you know that you have a NPE ?
This is all from earlier today
please show the exception
I’m typing on my phone
I just thought I would try and get a different direction to go in the morning
And it was playing on my mind
So thought I would ask you lot if anything seemed obvious
the way to tell "Your request is not valid" to the API caller is returning a Bad Request (HTTP 400)
All I do is put a httpStatus(bad_request) into the controller ?
and changing it's returning type to a ResponseEntity (and the syntax you showed is not right, but you got the point)
wait, is it spring? (I assumed it's spring)
Sry sry I’m running on fumes
Yeah
Boot
Guys I’ll come back here in the morning
what remains unclear after the above discussion?
The solution isn’t correct for my purpose
I’ve run it past people here
I’ve been given a different direction to try
If I still can’t solve it I’ll be back 👍
alright 🙂
Ok I got it working, your guys solution wasn’t correct for my needs if anybody is arsed message me and I’ll walkthrough what I done