-
Notifications
You must be signed in to change notification settings - Fork 50
Error initializing SDK in Cloud Run #1066
Description
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.
-
Is this a client library issue or a product issue?
Client -
Did someone already solve this?
No -
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-agentversion: 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