I published my API in wso2 API Manager when I tried it out in the developer portal. I got the error Bearer undefined in a curl command.
curl -X GET "https://localhost:8243/meter/1/?ConsumerID=LTFAREERKC&StartDate=01-05-2022 EndDate=02-05-2022" -H "accept: */*" -H "Authorization: Basic QREYUREFBE H: Bearer undefined"
Check the Authorization header you send in the curl command, it must contain "Bearer " and not "Basic ".
Example:
-H "Authorization: Bearer <YOUR-ACCESS-TOKEN>"
Do not forget to generate the Access Token.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.