question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

400 bad request when exporting traces to Stackdriver

See original GitHub issue

I’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.

Full request/response log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
benhoIIandcommented, Mar 26, 2019

I’ve created an example repo with steps to reproduce the error. Let me know if there’s anything else you need.

0reactions
benhoIIandcommented, Mar 26, 2019

Great - thanks for the quick response @mayurkale22.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found