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

What to alter in the code for eu region #1

Open
smalluk opened this issue May 31, 2022 · 0 comments
Open

What to alter in the code for eu region #1

smalluk opened this issue May 31, 2022 · 0 comments

Comments

@smalluk
Copy link

smalluk commented May 31, 2022

I have altered the code so the api URL contains .eu but I believe in the threatresponse library there may be other URL's that need editing. Is there an EU version of the library or somewhere I can update the region to EU?

C:\Users\me\amp-tr-04-cleanup-scd-lists-master>python cleanup_scd.py
Traceback (most recent call last):
File "cleanup_scd.py", line 260, in
main()
File "cleanup_scd.py", line 184, in main
client = ThreatResponse(
File "C:\Program Files (x86)\Python38-32\lib\site-packages\threatresponse\client.py", line 40, in init
request = ClientAuthorizedRequest(request,
File "C:\Program Files (x86)\Python38-32\lib\site-packages\threatresponse\request\authorized.py", line 24, in init
self._token = self._request_token()
File "C:\Program Files (x86)\Python38-32\lib\site-packages\threatresponse\request\authorized.py", line 50, in _request_token
response.raise_for_status()
File "C:\Program Files (x86)\Python38-32\lib\site-packages\threatresponse\request\response.py", line 34, in raise_for_status
raise extended(error)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\threatresponse\request\response.py", line 32, in raise_for_status
self._response.raise_for_status()
File "C:\Program Files (x86)\Python38-32\lib\site-packages\requests\models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://visibility.amp.cisco.com/iroh/oauth2/token
{
"error": "invalid_client",
"error_description": "unknown client",
"error_uri": "https://tools.ietf.org/html/rfc6749#section-5.2"
}

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

No branches or pull requests

1 participant