Ali
Ali

Reputation: 43

Difficulty getting error when running flutter doctor

It ran smoothly in the beginning, but after a while I get this :

Downloading windows-x64 tools... Download failed. URL: https://storage.googleapis.com/flutter_infra/flutter/1c26bf8c4b55f4fa5f0d175768a1a0cc115c70b2/windows-x64/artifacts.zip Error: 403 Forbidden"

I have tried to change flutter directory, but it didn't help.

Upvotes: 2

Views: 6986

Answers (3)

Sonu kumar
Sonu kumar

Reputation: 441

I am using linux , in terminal i ran

export https_proxy=10.32.0.1:8080
// It is my proxy:port

and then ran

flutter run

Upvotes: 0

Pouyan Asadi
Pouyan Asadi

Reputation: 69

I had Same issue and i resolve that with do following tips.

if you are Forced to use proxy for any reason, you need to set proxy true.

to do that, at first run this in terminal:

On Linux/macOS:

export https_proxy=hostname:port 

On Windows Command Prompt:

set https_proxy=hostname:port 

On Windows PowerShell

$Env:https_proxy="hostname:port"

Upvotes: 1

Günter Zöchbauer
Günter Zöchbauer

Reputation: 657158

If you are behind a proxy or firewall follow the instructions in these documents

https://flutter.io/community/china

https://www.dartlang.org/tools/pub/troubleshoot#pub-get-fails-from-behind-a-corporate-firewall

export https_proxy=hostname:port

https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#hot-reload-not-working

export NO_PROXY=127.0.0.1,localhost

Upvotes: 5

Related Questions