Skip to content

Unable to confirm transaction in Deno #2461

@livthomas

Description

@livthomas

Overview

Since #1120 was closed, I assume this library now supports Deno runtime. Some use cases work but not the Connection.confirmTransaction method.

Steps to reproduce

https://github.com/rockawayx-labs/bug-reproducers/tree/dev/solana-labs/solana-web3.js/deno

Description of bug

The following warning and error is being printed to the console:

Warning: Not implemented: ClientRequest.options.createConnection
ws error: Invalid WebSocket frame: invalid UTF-8 sequence

It looks like it is a missing feature in Deno: denoland/deno#19507 However, other libraries were able to work around it as you can see in the discussion (e.g. discord.js).

Repro for 2.x line: https://codesandbox.io/p/devbox/flamboyant-villani-f4kgd7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions