-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Can't find any spans... keep getting "Unexpected end of JSON input" #412
Comments
I've seen that when the UI is loaded via the browser's cache but the query service itself can't be reached. Could you try reloading bypassing the cache (Ctrl+Shift+R would usually do it)? If you can't reach the UI anymore, you might have missed exposing the container port to your host port (like, If you do get the UI loaded but still see the same error message, then it would be useful to get into the developer console, copy the curl command, run on the command line and report back the output. I would also ask what's the exact command used to start the Docker container (like, |
yea.... All I did was copy the docker jaeger-all-in-one run command:
I'm using the node.js client. I've tried refreshing no dice. Here is the curl command: curl 'http://localhost:16686/api/traces?end=1505996037353000&limit=20&lookback=24h&maxDuration&minDuration&service=test-jaeger&start=1505909637353000' \
-H 'Accept: */*' \
-H 'Connection: keep-alive' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Referer: http://localhost:16686/search?end=1505996027475000&limit=20&lookback=24h&maxDuration&minDuration&service=test-jaeger&start=1505909627475000' \
-H 'Accept-Language: en-US,en;q=0.8' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36' \
--compressed It is returning no response body. |
Does that mean that you still see the error, or does that mean you don't get the UI loaded at all? Would you please try in an incognito window, just to make sure? In any case, I cannot reproduce what you are experiencing. I started Jaeger with your exact
The JSON above is the appropriate response for this scenario. If you don't send any traces to the server with your nodejs client, do you see the same empty response, or do you see a JSON like I have? |
@jpkrohling It means I'm still getting the error. I've tried hard refresh. |
I can show you docker logs if that helps? |
It seems to be when I have multiple span types within a trace. Nothing unusual looking in logs:
|
In many cases the UI shows a misleading error message. Seems like for an erred HTTP response with no body, the error message should show the status code and a message along the lines of "An unknown error has occurred." Not exactly super helpful, but better than trying and failing to parse JSON data that isn't there and showing an error message about the failed I've created jaegertracing/jaeger-ui#127 to address the misleading error messages. |
I'm closing this, as this was addressed by jaegertracing/jaeger-ui#127 |
I'm still seeing this issue on Jaeger 1.16 for some scenarios. |
@belabartha are you able to reproduce it consistently? |
@jpkrohling yes. We have missing data probably, but I'd still expect to have a direction where to fix it. We're using Moleculer framework for our microservices, and using Jaeger for APM. |
@belabartha are you able to pin-point it to the request that returns the broken results? An example of the response would also be useful. |
@jpkrohling not yet. I'm trying to get to it; It's buried deeply into about 5th level of spans in a span of 16. |
For now I have this: jaeger.js - line 42:
|
In the first screenshot at this issue, you can see the |
Yep, service is populated in the left-had side form. Most of the Operations display a properly, but I have a few that don't. |
In case I add the service (&service=whatever) to the response URL I posted about 3 posts ago, I get: |
If you have the field populated, the "Find Traces" button enabled, and still get a request being made without the |
Hello, also seeing this issue here. What happens is that the UI receive a 200 status code with no JSON body from the server part. Even if some spans are corrupted, shouldn't the server part at least return the valid ones to the UI? |
Are you able to consistently reproduce it, @gautaz? If you can build a reproducer that can be used by us, we can try to take a look. Also, this seems to be somewhat different than the original report, so, I'd ask you to open a new issue. |
@jpkrohling See #2541. |
Here is the error messaging I'm seeing... For context I'm using the jaegertracing/all-in-one docker image locally...
The text was updated successfully, but these errors were encountered: