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

Improve Message for Forbidden External Request #8372

Open
4 tasks done
AlexCatarino opened this issue Oct 16, 2024 · 0 comments
Open
4 tasks done

Improve Message for Forbidden External Request #8372

AlexCatarino opened this issue Oct 16, 2024 · 0 comments
Labels

Comments

@AlexCatarino
Copy link
Member

Expected Behavior

LEAN suggests using the Download method for GET requests.

Actual Behavior

When we use requests method, we receive the following error:

During the algorithm initialization, the following exception has occurred: HTTPSConnectionPool(host='api.factset.com', port=443): Max retries exceeded with url: /.well-known/oauth-authorization-server (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 403 Forbidden')))

Potential Solution

Parse that error and suggest using the Download.

Reproducing the Problem

from AlgorithmImports import *
import requests

class MyAlgorithm(QCAlgorithm):
    def initialize(self):
        response = requests.get('https://google.com')

System Information

QC Cloud.

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant