Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 8, 2025. It is now read-only.
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

"error can't alloc pcb" occurs when calling fetch API. #664

Open
@pelikhan

Description

Discussed in #660

Originally posted by yuichisuzuki0601 November 8, 2023

  • The device is Raspberry Pi pico.
  • I have confirmed that the device is connected to wifi.
  • It happens when I make an http request.
  • Timeout occurs when making https request.

error log

DEV> connecting to tcp://192.168.0.8:8080
DEV> socket tcp://192.168.0.8:8080 error can't alloc pcb
DEV> Unhandled exception
DEV> Exception: Error
DEV> message: socket tcp://192.168.0.8:8080: can't alloc pcb
DEV> at _connect [as F38_pc214] (node_modules/@devicescript/net/src/sockets.ts:158:29)
DEV> at connect [as F20_pc7] (node_modules/@devicescript/net/src/sockets.ts:172:5)
DEV> at fetch [as F15_pc534] (node_modules/@devicescript/net/src/fetch.ts:174:5)
DEV> at inline [as F8_pc23] (src/main.ts:47:5)
DEV> at emit [as F64_pc24] (node_modules/@devicescript/core/src/events.ts:23:17)
DEV> Unhandled exception
DEV> stop program
DEV> connection error: "sock write error"
DEV> connection error: "sock write error"
DEV> connection error: "sock write error"
DEV> connection error: "sock write error"
DEV> connection error: "sock write error"

I want to know the cause and solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /