Skip to content

Cannot talk to public satellite with token from a private project? #44

@TejasQ

Description

@TejasQ

Describe the bug
A clear and concise description of what the bug is.

So I'm trying to follow the README and everything seems to work, except when I run my project, I get this error:

{
   "stack":"CollectorExporterError: Bad Request\n    at IncomingMessage.<anonymous> (/Users/tejask/Sites/software-catalog/node_modules/lightstep-opentelemetry-launcher-node/node_modules/@opentelemetry/exporter-collector/build/src/platform/node/util.js:52:31)\n    at IncomingMessage.emit (events.js:327:22)\n    at IncomingMessage.EventEmitter.emit (domain.js:467:12)\n    at endReadableNT (internal/streams/readable.js:1327:12)\n    at processTicksAndRejections (internal/process/task_queues.js:80:21)",
   "message":"Bad Request",
   "name":"CollectorExporterError",
   "data":"{\"code\":3,\"message\":\"access token corresponds to a private project, which cannot report spans to public satellites (access_token:iOsGpETC)\",\"details\":[{\"@type\":\"type.googleapis.com/google.rpc.DebugInfo\",\"stackEntries\":[\"\\tat errorWithToken (/go/src/github.com/lightstep/collector/app/collector/controllers/configuration_service.go:611)\\n\"]}]}",
   "code":"400"
}

To Reproduce
Steps to reproduce the behavior. Include code samples here when possible.

Try to follow the README but use a token from a private project.

Expected behavior
A clear and concise description of what you expected to happen.

I expect it to "just work"™, or to allow a private: true or similar when calling lightstep.configureOpenTelemetry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions