LaraL
Denoβ€’16mo agoβ€’
4 replies
Lara

TypeError: error sending request for URL! (Deno -Supabase - Oak)

Hi team, I am struggling to use Deno with oak for my project and have this issue:

Error : 500 Internal Server Error!
{
    "error": {
        "type": "database_error",
        "message": "TypeError: error sending request for url (http://127.0.0.1:54321/rest/v1/user_meta?select=*)",
        "errors": [
            "TypeError: error sending request for url (http://127.0.0.1:54321/rest/v1/user_meta?select=*)\n    at async mainFetch (ext:deno_fetch/26_fetch.js:170:12)\n    at async fetch (ext:deno_fetch/26_fetch.js:391:7)\n    at async file:///Users/lara/doctorsRep/doctors/supabase/functions/doctors/routes/v1/user/userRouter.ts:11:27\n    at async dispatch (https://deno.land/x/oak@v11.1.0/middleware.ts:18:7)\n    at async dispatch (https://deno.land/x/oak@v11.1.0/middleware.ts:18:7)\n    at async dispatch (https://deno.land/x/oak@v11.1.0/middleware.ts:18:7)\n    at async dispatch (https://deno.land/x/oak@v11.1.0/middleware.ts:18:7)\n    at async errorMiddleware (file:///Users/lara/doctorsRep/doctors/supabase/functions/doctors/lib/middlewares/error.ts:7:5)\n    at async dispatch (https://deno.land/x/oak@v11.1.0/middleware.ts:18:7)\n    at async corsMiddleware (file:///Users/lara/doctorsRep/doctors/supabase/functions/doctors/lib/middlewares/cors.ts:5:3)"
        ]
    }
}


Already created a repository and added all the info you need to reproduce it
Link :https://github.com/Ge6ben/custom-route-oka
Screenshot_2024-10-03_at_9.45.18_PM.png
GitHub
Contribute to Ge6ben/custom-route-oka development by creating an account on GitHub.
GitHub - Ge6ben/custom-route-oka
Was this page helpful?