Entity Lookup 401 Error
The code below used to work perfectly, now it is returing a 401 error. Any help would be appreciated. Note the API key has not expired.
import requests
import json
import csv
import re
# def get_lookup_info(ticker, access_token):
lookup_url = 'https://permid.org/'
headers = {
'Accept':'application/ld+json'
}
access_token = "FqL8ome1GAvAPv6NQ0lRQ1fNLYbLFipW"
ticker = "1-21548755953"
response = requests.get(url=f'{lookup_url}{ticker}?format=json-ld&access-token={access_token}', headers =headers )
response
Edit: I have even tried the official software using many other keys from our department, all end up in errors. Error is first code block, and execution code third code block.
ERROR:openpermid:<Response [401]>, {'Date': 'Wed, 18 Jan 2023 19:33:16 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '52', 'Connection': 'keep-alive', 'X-Cnection': 'close', 'Access-Control-Allow-Credentials': 'true', 'Vary': 'Origin', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 d7790c7504b110faa52e9641bf06a578.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'DFW56-P3', 'X-Amz-Cf-Id': 'tAP9Yj_NCHREsP1eBikoXjX_AZ5IDAAtClX1eQR6sa7K0XQRgkYyjw==', 'CF-Cache-Status': 'DYNAMIC', 'Server': 'cloudflare', 'CF-RAY': '78b9c2e56b0d29b4-ORD'}, {
"message":"Invalid authentication credentials"
}
(None, 'Unauthorized: {\n "message":"Invalid authentication credentials"\n}')
from OpenPermID import OpenPermID
opid = OpenPermID()
opid.set_access_token("FqL8ome1GAvAPv6NQ0lRQ1fNLYbLFipW")
opid.lookup("1-5064690523", format='dataframe', orient='row')
Best Answer
-
@islashires @d.snow So I have checked this service using the Python package and the following is working for me:
from OpenPermID import OpenPermID
opid = OpenPermID()
opid.set_access_token("YOUR TOKEN HERE")
opid.search("Microsoft",format='dataframe')Can you both check this to see if this works for you- I also updated the python library using "pip install OpenPermID --upgrade". I cannot seem to get the opid.lookup service to work - I am getting the same invalid credentials message as you are. I am speaking with the product team and will report back.
1
Answers
-
@islashires Thanks for your question and apologies for your issue, I have also tried this on the OpenPermID site itself and I am getting an error as well - so I believe there is some problem with the service itself:
I have escalated this to the Service Owners who are now investigating and I will get back to you as soon as I hear anything. Please bear with us. I hope this can help.
1 -
Hi @jason.ramchandani01, I am struggling with the same as I realized my program failed and stopped updating. Has the team been able to check this out? Cheers Derek.
0 -
Hi @d.snow Sorry to hear you are facing the same issue - the issue is being investigated by the Development Team and I have requested an urgent update from them ASAP. I will post on here as soon as I hear anything. Please bear with us. I hope this can help.0
-
Thanks @jason.ramchandani01 we are able to run your function too. And you are right, the look-up seems to be the problem. We currently use it in a microservice for daily updates and have switched it off. I will add a google colab notebook for replication too.
from OpenPermID import OpenPermID
opid = OpenPermID()
opid.set_access_token("FqL8ome1GAvAPv6NQ0lRQ1fNLYbLFipW") # tested my creds and other users
opid.lookup("1-5064690523", format='dataframe', orient='row')It's good to know that the product team is working on it. Please let me know if there is any updates.
Cheers
0 -
This is still an issue, does anyone know when this will be resolved?
0 -
Hi, We have tried this with both registered and un-registered users and we are not able to replicate this issue from our end. Can you please send us the detailed steps to replicate this?
0 -
Hi the thread is full of examples of it not working.
I will add a google colab notebook for replication too.
from OpenPermID import OpenPermID
opid = OpenPermID()
opid.set_access_token("FqL8ome1GAvAPv6NQ0lRQ1fNLYbLFipW") # tested my creds and other users
opid.lookup("1-5064690523", format='dataframe', orient='row')1 -
On behalf of the product team, I need to apologize for the trouble you've been having with Lookup API. My team and I are doing everything we can to resolve this as fast as possible. We will update you further on the progress in this thread. I apologize again for any inconvenience.
0 -
Thanks
@aleksandra..wawrzyniak we are looking forward to the solution! Please keep us up to date.0 -
We have made the changes in the Lookup API and your code should be working now. No changes are needed from your side.
Aleksandra
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛