-
Notifications
You must be signed in to change notification settings - Fork 318
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
I keep getting "curl: (22) The requested URL returned error: 401 Unauthorized" when trying to install the pod #2692
Comments
Hi, thanks for taking the navigation SDK for a spin! The .netrc file should be in your home directory ( |
Thanks for following up. I have done that and ensured my key matches my
account and that the .netrc file per the documentation and i am still
having the issue.
…On Tue, Oct 13, 2020 at 6:07 PM Minh Nguyễn ***@***.***> wrote:
Hi, thanks for taking the navigation SDK for a spin! The .netrc file
should be in your home directory (~ on the command line, or use Go ‣ Home
in Finder). If it’s located anywhere else, CocoaPods is unable to use it
when connecting to the Mapbox Downloads API, so the API returns a 401 error.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2692 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APIFXS3MAUM5MFZCSMBPWZLSKTMSVANCNFSM4SPIRUHA>
.
|
the .netrc file is as follows " " |
I figured it out, when I was using terminal I was typing |
Your answer explained it better than their own documentation, thank you spent like stupid 1 hour looking into this |
Where exactly did you store de .netrc inside the flutter project folder? |
"Your secret token enables you to download the SDK directly from Mapbox. To use your secret token, you will need to store it in a .netrc file in your home directory (not your project folder). This approach helps avoid accidentally exposing your secret token by keeping it out of your application's source code. Depending on your environment, you may have this file already, so check first before creating a new one." -- https://docs.mapbox.com/ios/maps/guides/install/ Should be in your home folder |
For anyone wondering where's your home folder or where the file should be exactly plain and simple:
|
I have read many tutorials and cannot seem to pin down the issue I do have the .netrt file in the build folder when running and it still reads unauthorized. How do we fix this?
Downloading dependencies
Installing Mapbox-iOS-SDK (6.2.1)
[!] Error installing Mapbox-iOS-SDK
[!] /usr/bin/curl -f -L -o /var/folders/ld/4nl9mlr57jv9ztcy354jzp7w0000gn/T/d20201013-65282-1rdedim/file.zip https://api.mapbox.com/downloads/v2/mobile-maps/releases/ios/packages/6.2.1/mapbox-ios-sdk-dynamic.zip --create-dirs --netrc-optional --retry 2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 401 Unauthorized
The text was updated successfully, but these errors were encountered: