Skip to content

[BUG] The test connection app in E2B fails #19947

@sergio-eliot-rodriguez

Description

@sergio-eliot-rodriguez

Describe the bug
Creating a new connection to E2B fails with Error [ERR_REQUIRE_ESM]: require() of ES Module, when attempting to test connection.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Pipedream workflow builder, in a code step add the E2B "Run any node.js code API" action and configure by adding a new one using E2B API Key.
  2. After enterting your API Key, click on 'Test connection'
  3. See error

Expected behavior
Test connection runs succesfully.

Screenshots

Image

Additional context
When the component development team addressed fix of the E2B run_query action, it was found that pinning the EB2 library will fix that action issue. The test request of the E2B app uses the same library, pinning it fixes it too.

Here is an appslug for repurposing showing the test request using the pineed library

Essentially this change is about updating line 2 of component scaffolding section to
import { Sandbox } from '@e2b/code-interpreter@1.0.3';

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriagedFor maintainers: This issue has been triaged by a Pipedream employee

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions