400 bad request when exporting traces to Stackdriver
See original GitHub issueI’m seeing the following error when sending the trace information to https://cloudtrace.googleapis.com
using the `‘@opencensus/exporter-stackdriver’ package:
{
"error": {
"code": 400,
"message": "Invalid value at 'spans[0].time_events.time_event[0].message_event.id' (TYPE_INT64), \"78f514e909094a98804da597eb454ba7\"",
"errors": [
{
"message": "Invalid value at 'spans[0].time_events.time_event[0].message_event.id' (TYPE_INT64), \"78f514e909094a98804da597eb454ba7\"",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
From the Google Documentation for cloud tracing, the type for the a MessageEvent
should be a string (int64 format)
whereas the id that is set is a hexadecimal value.
I’m not sure if the API recently made this change or something is wrong in my setup. Anyone able to confirm if this is/isn’t an issue? Happy to lend a hand to fix it as well.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error messages - Resource Manager - Google Cloud
BAD_REQUEST (400) ; badRequest, The API request is invalid or improperly formed. Consequently, the API server could not understand the request.
Read more >400 Bad Request "Request contains an invalid argument ...
stackdriver query throws 400 GoogleJsonResponseException: 400 Bad Request "Request contains an invalid argument" · Subscribe to RSS.
Read more >census-instrumentation/Lobby - Gitter
Hey folks, I'm using ocgrpc stuff from opencensus-go, exporting traces to Stackdriver. I have health checks set up to call grpc.health.v1.Health.
Read more >Exporting metrics and traces to Google Cloud's operations suite
The Opencensus exporter allows you to export metrics and traces to Google Cloud. Enabling it only requires you to add the stackdriver ......
Read more >RQM 4.0.4 Excel Importer Error 400: Bad Request when ...
I filled in the StepResult for each step and attempted to export it back to the repository. I received the Error 400 Bad...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve created an example repo with steps to reproduce the error. Let me know if there’s anything else you need.
Great - thanks for the quick response @mayurkale22.