Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dario-piotrowicz/getplatformproxy-do-json-issue-repro


https://github.com/dario-piotrowicz/getplatformproxy-do-json-issue-repro

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# `getPlatformProxy` DO JSON issue repro

Calling `getPlatformProxy` on wrangler <= v3.45.0 allows the interaction with Durable Object proxies
as expected, on wrangler >= v3.46.0 instead a `SyntaxError: "undefined" is not valid JSON` error is presented

# To reproduce the issue
Install the dependencies
```
pnpm i
```

Run
```
pnpm ok
```
To see the correct result:
![ok screenshot](./ok.png)

Run
```
pnpm ko
```
To instead see the problematic result:
![ko screenshot](./ko.png)