Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pelikhan opened this issue Nov 27, 2023 Discussed in #660 · 1 comment
Open

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

pelikhan opened this issue Nov 27, 2023 Discussed in #660 · 1 comment

Comments

@pelikhan
Copy link
Member

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.

@PiotrKasperski
Copy link
Contributor

i've got similaar problem.
When i'm trying to connect my local hivemq server i'm getting:

DEV> mqtt: socket connecting to 192.168.1.152:1883
DEV> connecting to tcp://192.168.1.152:1883
DEV> socket tcp://192.168.1.152:1883 error can't alloc pcb
DEV> mqtt: disconnect

Connection to tcp://broker.hivemq.com work fine, also i'm sure my server work's good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants