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

Upgrade Npgsql #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michalmilosz-ds
Copy link

No description provided.

@jk05
Copy link

jk05 commented Feb 11, 2022

Currently in the "Microservices Architecture" ==> "Demo – Deploying voting app on Kubernetes" lesson I get the following in the logs when I try to create worker pod:

System.NotSupportedException: Authentication method not supported (Received: 10)
   at Npgsql.NpgsqlConnector.ParseServerMessage(ReadBuffer buf, BackendMessageCode code, Int32 len, DataRowLoadingMode dataRowLoadingMode, Boolean isPrependedMessage)
   at Npgsql.NpgsqlConnector.DoReadMessage(DataRowLoadingMode dataRowLoadingMode, Boolean isPrependedMessage)
   at Npgsql.NpgsqlConnector.ReadMessageWithPrepended(DataRowLoadingMode dataRowLoadingMode)
   at Npgsql.NpgsqlConnector.HandleAuthentication(String username, NpgsqlTimeout timeout)
   at Npgsql.NpgsqlConnector.Open(NpgsqlTimeout timeout)
   at Npgsql.ConnectorPool.Allocate(NpgsqlConnection conn, NpgsqlTimeout timeout)
   at Npgsql.NpgsqlConnection.OpenInternal()
   at Worker.Program.OpenDbConnection(String connectionString) in /code/src/Worker/Program.cs:line 78
   at Worker.Program.Main(String[] args) in /code/src/Worker/Program.cs:line 19

I presume this is related to needing to bump npgsql?

I wonder if this issue was resolved in [email protected] (npgsql/npgsql#1530)? But Im not sure, haven't delved in too much.

I tried to build an image locally to test but get:

Step 1/5 : FROM microsoft/dotnet:2.0.0-sdk
pull access denied for microsoft/dotnet, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

It seems like this is no longer available on Docker Hub?

@vlskrbek
Copy link

vlskrbek commented Aug 9, 2022

I have the same error on google cloud.

@LBates2000
Copy link

LBates2000 commented Jan 9, 2023

The workaround for this issues is to change

to image: postgres:9.4

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

Successfully merging this pull request may close these issues.

4 participants