#shorebird login error

1 messages Β· Page 1 of 1 (latest)

hot condor
#

[HTTP] GET https://api.shorebird.dev/api/v1/users/me
An unknown error occurred
[Process.run] git symbolic-ref HEAD (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0
stdout:
refs/heads/stable
[Process.run] git rev-parse --verify HEAD (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0
stdout:
673a6fe5912cd6c28226a29688c1a6b66906d01e
[Process.run] git remote prune origin (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0
[Process.run] git fetch --tags (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0
[Process.run] git rev-parse --verify @{upstream} (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0
stdout:
673a6fe5912cd6c28226a29688c1a6b66906d01e

try to access https://api.shorebird.dev/api/v1/users/me.
{"code":"upgrade_required","message":"The current version is not supported. Please upgrade to the latest version and try again.","details":"Missing x-version header."}

This is my shorebird doctor
Shorebird 1.6.19 β€’ [email protected]:shorebirdtech/shorebird.git
Flutter 3.29.0 β€’ revision 2e1bcd18e2dc3b8251dc0671085c6518d37e16ad
Engine β€’ revision ac75ff6df8576a68e545685306011788a54b5cd7
URL Reachability
βœ“ https://api.shorebird.dev OK (0.6s)
βœ“ https://console.shorebird.dev OK (0.5s)
βœ“ https://oauth2.googleapis.com OK (0.4s)
βœ“ https://storage.googleapis.com OK (0.2s)
βœ“ https://cdn.shorebird.cloud OK (0.3s)
βœ“ Shorebird is up-to-date (1.9s)
βœ— AndroidManifest.xml files contain INTERNET permission (57ms)
[βœ—] android\app\src\main\AndroidManifest.xml is missing the INTERNET permission.
βœ— macOS app has correct entitlements (18ms)
[βœ—] C:\Dev\macos\Runner\Release.entitlements is missing the Outgoing Connections (com.apple.security.network.client) entitlement.
[βœ—] C:\Dev\macos\Runner\Release.entitlements is missing the Allow Unsigned Executable Memory (com.apple.security.cs.allow-unsigned-executable-memory) entitlement.
βœ— shorebird.yaml found in pubspec.yaml assets (9ms)
[βœ—] No shorebird.yaml found in pubspec.yaml assets

#

Please help

rigid fractal
#

What are the steps you took exactly?

hot condor
#

Try shorebird init
Git is not configured to allow long paths. This can cause issues with Shorebird's Flutter checkout. Please run 'git config --system core.longpaths true' to enable long paths.
You must be logged in to run this command.
If you already have an account, run shorebird login to sign in.
If you don't have a Shorebird account, go to https://console.shorebird.dev to create one.

If you aren't sure why this command failed, re-run with the --verbose flag to see more information.

You can also file an issue if you think this is a bug. Please include the following log file in your report:

#

after i run the login script then the following error occured

rigid fractal
#

When you ran shorebird login did you click the link and authenticate?

hot condor
#

yes i did

rigid fractal
#

Did the cli indicate the login was successful?

hot condor
#

no

#

it showed this

#

Waiting for your authorization...
[HTTP] GET https://api.shorebird.dev/api/v1/users/me
An unknown error occurred.
[Process.run] git symbolic-ref HEAD (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0

stdout:
refs/heads/stable

[Process.run] git rev-parse --verify HEAD (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0

stdout:
673a6fe5912cd6c28226a29688c1a6b66906d01e

[Process.run] git remote prune origin (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0
[Process.run] git fetch --tags (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0
[Process.run] git rev-parse --verify @{upstream} (in C:\Users\1710061.shorebird\bin\cache)
Exited with code 0

stdout:
673a6fe5912cd6c28226a29688c1a6b66906d01e

#

my PC is behind my company proxy and have windows defender installed. Is there a problem with it?

#

any other work around for this?

#

shorebird doctor show this

#

shorebird doctor
Shorebird 1.6.19 β€’ [email protected]:shorebirdtech/shorebird.git
Flutter 3.29.0 β€’ revision 2e1bcd18e2dc3b8251dc0671085c6518d37e16ad
Engine β€’ revision ac75ff6df8576a68e545685306011788a54b5cd7

URL Reachability
βœ“ https://api.shorebird.dev OK (0.2s)
βœ“ https://console.shorebird.dev OK (0.3s)
βœ“ https://oauth2.googleapis.com OK (0.3s)
βœ“ https://storage.googleapis.com OK (0.2s)
βœ“ https://cdn.shorebird.cloud OK (0.3s)

βœ“ Shorebird is up-to-date (1.9s)

No issues detected!

rigid fractal
hot condor
#

already try firefox, chrome, and edge, all with the same result

#

πŸ₯²

rigid fractal
#

Hmm have you tried on a different network?

#

I’ll take a closer look in the morning and try to add additional logging so that we can have a better idea of what went wrong

hot condor
#

i will try different network

rigid fractal
hot condor
#

hi i try using different network and it is working

#

okay so the problem is because of my company proxy and security

#

by the way i have a question, how to setup proxy setting in shorebird CLI?