Open joeflack4 opened 2 years ago
from a bash shell, curl works when you quote the URL. I can't remember if powershell has curl on it. You could also try a linux subsystem.
That's a good suggestion. Still want to take note of this case, just in case a user does this. Honestly I'll probably run into this issue as well especially when I want to demonstrate something to someone. This is really a HAPI issue that ideally they would fix, not us.
I'd guess it's a URL encoding thing and not a HAPI thing. The slashes and colon are reserved in URL.
What I mean is, the code within our codebase which parses out these URLs (and is resulting in Error parsing HTTP request header
, java.lang.IllegalArgumentException: Invalid character found in method name
) is likely HAPI source code or from a library being imported from within the HAPI source code, not anything that Shahim has written on top of that (I haven't written any Java for this project; at least not yet).
Did you dig deep enough to see what URL was received? (I haven't)
Nope, but there's a pretty high probability that the invalid character is the /
, I would say.
BTW, "crash" in my world means the server goes down and quits responding to requests, needs to be restarted. Is this just an error on that one request?
I think it did go down, but it's been too long for me to remember. This may have been fixed by Shahim already. Not going to give it a go right at this moment, but I suppose easily check and see if this still happens.
Overview
I was just doing an ad hoc query in the address bar of my browser; didn't remember if this was the valid way to do it, but didn't expect a crash either.
I tried:
http://20.119.216.32:8000/r4/CodeSystem?_summary=true?system=http://snomed.org
Error message
Short err:
Error parsing HTTP request header
java.lang.IllegalArgumentException: Invalid character found in method name
Full log:
Additional info
I see that swagger does the character conversion for us. This is what it gave me: