whgrs1692
whgrs1692
CC#
Created by whgrs1692 on 8/7/2024 in #help
Unable to connect to containerised postgres from webapi container ( on Ubuntu)
I have a docker compose ( webapi + postgres) that runs correctly. However, when I try and run dotnet ef database update, it throws a Socket Error: dotnet ef database update Build started... Build succeeded. System.Net.Sockets.SocketException (00000001, 11): Resource temporarily unavailable So, I docker exec into the webapi container ( which has a psql client) and I create a connection to the postgres container. The connection is established no problem. This proves the containers can communicate. So what is going on when the dotnet ef command runs? Cant really post it on ef github cause they will just throw it out. Where to next?
7 replies
CC#
Created by whgrs1692 on 2/22/2024 in #help
How do I pass through JWT token and customer headers
Not sure this approach is right. I have a webapi that will receive a bearer token and a custom header that it needs to pass on to another Api. ( Supabase PostgresSql ) from a front end client local storage. ( Blazor WASM). This paradigm has all the auth on the Supabase Postgrest Api. I'm not sure this is the best way to do it. Question: How do I access the JWT token and the custom header in the webapi post method? Is it simply a matter of grabbing the values from the HttpContext?
3 replies
CC#
Created by whgrs1692 on 11/25/2023 in #help
I am trying to debug a webapi project in a docker container, but breakpoints are not being hit
I think everything is setup correctly. The reponse comes back correctly from a post. The only issue is that the breakpoints are never hit.
2 replies
CC#
Created by whgrs1692 on 10/21/2023 in #help
❔ dotnet ef cli cant see the SDK - help!
I am on Ubuntu 23.04 for my sins. SDK 7.0.12 .NET running OK but when I try and install dotnet ef cli, the cli installs but cannot see the SDK - tried everything. Its a common problem but none of the solutions Ive seen fix my issue.
3 replies
CC#
Created by whgrs1692 on 9/20/2023 in #help
❔ ✅ Installing the .NET SDK on Ubuntu 23.04
Does anyone here have experience with installing .NET 7 on Ubuntu?
198 replies