Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Error initializing SDK in Cloud Run #1066

Description

@francescov1

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

  1. Is this a client library issue or a product issue?
    Client

  2. Did someone already solve this?
    No

  3. Do you have a support contract?
    No

If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details

  • OS: Cloud Run
  • Node.js version: 16.8
  • npm version: 7.21.0
  • @google-cloud/debug-agent version: 5.2.8

Steps to reproduce

Our code is deployed to Cloud Run. Our index.ts file starts with

debugAgent.start({serviceContext: {enableCanary: true}, sourceContext: require('./source-context.json') });

immediately after all imports. We are getting the following error on start: @google-cloud/debug-agent Error processing the sourcemaps. Error: An error occurred while processing the sourcemap filesError: An error occurred while reading the sourcemap file dist/index.js.map: Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer.

Note that we are using Typescript, is there special config needed? We followed the documentation here and these docs for auto detecting source code

Activity

  1. added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Apr 16, 2022
  2. mctavish commented on May 13, 2022

    @mctavish
    Contributor

    Root cause is mozilla/source-map#432 which hasn't made it into a release yet.

    I'm exploring migrating to trace-mapping which doesn't have a wasm dependency and has some other benefits as well.

  3. added a commit that references this issue on May 16, 2022
    db3e0a5
  4. added a commit that references this issue on May 16, 2022
    926c300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: clouddebuggerIssues related to the googleapis/cloud-debug-nodejs API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions