401-Not Authorized - world check api
Hi Team,
We are planning to consume “screeningRequest” details from world check api
Can you please help us on the issue?
Let us know if you need any other details.
Request: https://api-worldcheck.refinitiv.com/v2/cases/screeningRequest
Request Body: Attached Sample Java code
Response:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
NettyResponse {
statusCode=401
headers=
Date: Sun, 27 Nov 2022 14:30:37 GMT
Connection: keep-alive
Authorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"
Content-Security-Policy: default-src 'none'; frame-ancestors 'none'
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
content-length: 0
body=
}
Uploaded sample project for reference, can you please help us on Priority?
Let us know if you need any other details.worldCheckApitSample.zip
Answers
-
Hi Team,
Uploaded sample project for reference, can you please help us on Priority?Let us know if you need any other details.
worldCheckApitSample.zip0 -
Hi @cheenie.
I did some digging and found out a possible solution could be adding these dependencies in your pom.xml file. PFA the following code -
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.14.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.14.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.14.1</version>
</dependency>
(or)
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j</artifactId>
<version>2.14.1</version>
</dependency>
<!-- SLF4J Bridge -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.14.1</version>
</dependency>
Could you please try the above and get back to me? Thank you.
Regards,
Ssneha Balasubramanian.
0 -
Hi BalaSubhramanian,
thanks for the update, But we have updated out dependencies still not able to get the valid response.
Error Response:NettyResponse {
statusCode=401
headers=
Date: Mon, 28 Nov 2022 03:57:52 GMT
Connection: keep-alive
Authorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"
Content-Security-Policy: default-src 'none'; frame-ancestors 'none'
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
content-length: 0
body=
}
Attached updated Pom.xml file
0 -
Hi @cheenie.
I can't find any log4j dependencies in the pom.xml file of the folder. Is it available in another file? Thank you.
Regards,
Ssneha Balasubramanian.
0 -
Hi Ssneha Balasubramanian ,
Attached pom.xml file here pom.txt
Let me know if you need any other details
Attached updated project
worldCheckApitSample.zip0 -
Hi @cheenie.
I found another solution requiring to add this jar file - https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.6.2/slf4j-simple-1.6.2.jar. Could you add this and try again? Thank you.
Regards,
Ssneha Balasubramanian.
0 -
Hi Ssneha Balasubramanian,
even after updating slf4j jar Subjected issue is not resolved
can you please run the App.java file available in the attachment sample project?
because issue might not be relate to Logger Jar file0 -
Sure.
I'm running it on my end. Will update in a bit. Thank you.
Regards,
Ssneha Balasubramanian.
0 -
Hi @cheenie.
In the java file, one of the headers is GET request and groups/v1/ endpoint but screening request of individual has been passed. These are not compatible. Could you look into this? Thank you.
Regards,
Ssneha Balasubramanian.
0 -
as per comments I have removed suggested header, Still not able to resolve the issue.
Attached code reference.
0 -
Hi @cheenie.
Just wanted to confirm if all the jar files have been added to the classpath? Thanks.
Regards,
Ssneha Balasubramanian.
0 -
Hi ,
all jar are available in the classpath, we are getting not authorized errorif you observe statusCode=401 i.e Not authorized error.
can you please help us on the issue?
Error detailsstatusCode=401
headers=
Date: Mon, 28 Nov 2022 07:06:32 GMT
Connection: keep-alive
Authorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"
Content-Security-Policy: default-src 'none'; frame-ancestors 'none'
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
content-length: 0
0 -
Hi @cheenie.
Could you post a picture of the error message fully? Thank you.
Regards,
Ssneha Balasubramanian.
0 -
NettyResponse {
statusCode=401
headers=
Date: Mon, 28 Nov 2022 07:17:13 GMT
Connection: keep-alive
Authorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"
Content-Security-Policy: default-src 'none'; frame-ancestors 'none'
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
content-length: 0
body=
}
0 -
Hi @cheenie.
Could you check this website Time.is 02:40am and let me know what time difference you are getting? Thank you.
Regards,
Ssneha Balasubramanian.
0 -
Hi Ssneha Balasubramanian.
0 -
Hi @cheenie.
The time difference looks good. Can you tell me how long it has been since the pilot account details have been assigned? The error could be because of an expired key. Thank you.
Regards,
Ssneha Balasubramanian.
0 -
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 中文论坛