Thanks to visit codestin.com
Credit goes to github.com

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

@francescov1

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

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