fp/services/worker/err.md
2025-11-12 07:54:01 -08:00

24 lines
1.7 KiB
Markdown

```shell
bun run --watch index.ts
1 | class ClientResponseError extends Error{constructor(e){super("ClientResponseError"),this.url="",this.status=0,this.response={},this.isAbort=!1,this.originalError=null,Object.setPrototypeOf(this,ClientResponseError.prototype),null!==e&&"object"==typeof e&&(this.url="string"==typeof e.url?e.url:"",this.status="number"==typeof e.status?e.status:0,this.isAbort=!!e.isAbort,this.originalError=e.originalError,null!==e.response&&"object"==typeof e.response?this.response=e.response:null!==e.data&&"object"==typeof e.data?this.response=e.data:this.response={}),this.originalError||e instanceof ClientResponseError||(this.originalError=e),"undefined"!=typeof DOMException&&e instanceof DOMException&&(this.isAbort=!0),this.name="ClientResponseError "+this.status,this.message=this.response?.message,this.message||(this.isAbort?this.message="The request was autocancelled. You can find more info in https://github.com/pocketbase/js-sdk#auto-cancellation.":this.originalError?.cause?.message?.includes("ECONNREFUSED ::1")?this.messa | ... truncated
ClientResponseError 404: The requested resource wasn't found.
url: "https://lego.tailb18385.ts.net/api/admins/auth-with-password",
status: 404,
response: {
data: [Object ...],
message: "The requested resource wasn't found.",
status: 404,
},
isAbort: false,
originalError: {
url: "https://lego.tailb18385.ts.net/api/admins/auth-with-password",
status: 404,
data: [Object ...],
},
at <anonymous> (/home/cj/Documents/futureporn-monorepo/services/worker/node_modules/pocketbase/dist/pocketbase.es.mjs:1:32687)
source /home/cj/Documents/futureporn-monorepo/venv/bin/activate
^[
```