Getting this error using the typescript client to a pretty vanilla aspnet (azure webapp) server:
{“responseStatus”:{“errorCode”:“ArgumentNullException”,“message”:“Value cannot be null. (Parameter ‘apiKey’)”,“errors”:[{“errorCode”:“ArgumentNullException”,“fieldName”:“apiKey”,“message”:“Value cannot be null.”}]}}
This client is authenticated using bearer/refresh tokens and other calls in the same environment work just fine…
- Request URL:
https://weqtest1.azurewebsites.net/json/reply/BidSubmission
- Request Method:
POST
- Status Code:
400 ArgumentNullException
- Remote Address:
20.118.138.133:443
- Referrer Policy:
strict-origin-when-cross-origin
-
Response HeadersView source
-
Access-Control-Allow-Credentials:
true
- Access-Control-Allow-Headers:
Content-Type, Allow, Authorization, X-Args
- Access-Control-Allow-Methods:
GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD
- Access-Control-Max-Age:
600
- Content-Type:
application/json; charset=utf-8
- Date:
Fri, 02 Dec 2022 00:48:55 GMT
- Request-Context:
appId=cid-v1:fcb075b6-733a-4c53-ad4a-5f971bfeac9e
- Server:
Kestrel
- Strict-Transport-Security:
max-age=2592000
- Transfer-Encoding:
chunked
- Vary:
Accept
- X-Powered-By:
ServiceStack/6.40 NET6/Linux/net6/NO
-
Request HeadersView source
-
Accept:
3./*
- Accept-Encoding:
gzip, deflate, br
- Accept-Language:
en-GB,en-US;q=0.9,en;q=0.8
- authorization:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImtpZCI6MjMyfQ.xxxxx.LSUlkybkgFITI65OIVeJHk3US8JLyYB6vt0CmEo_OIU
- Connection:
keep-alive
- Content-Length:
464
- content-type:
application/json
- Cookie:
ss-opt=perm; ss-id=x; ss-pid=x; X-UAId=4
- Host:
- Origin:
- Referer:
https://x.azurewebsites.net/FormA
- sec-ch-ua:
“Not?A_Brand”;v=“8”, “Chromium”;v=“108”, “Google Chrome”;v=“108”
- sec-ch-ua-mobile:
?0
- sec-ch-ua-platform:
“Windows”
- Sec-Fetch-Dest:
empty
- Sec-Fetch-Mode:
cors
- Sec-Fetch-Site:
same-origin
- User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36