403 Forbidden - These credentials do not authorize access - weather here api forecast_astronomy - here-api

Using the weather here api with product of forecast_astronomy and now all of sudden getting a 403 forbidden error on the request of "These credentials do not authorize access". The url request has not changed in the code and I have verified in the developer portal that the app id is enabled still.
This was working fine when last tried two days ago.
Tried directly in curl and postman and getting same 403 forbidden error:
{
"error": "Forbidden",
"error_description": "These credentials do not authorize access"
}

I can imagine two reasons:
you did not verify your email address after registering the account. If that's the case, please do so now.
you have consumed the allowed amount of transactions and the app_id got deactivated. The time you looked for the status it was re-activated again due to reaching the anniversary date.

Related

HERE-Routing API - "These credentials do not authorize access"

I have signed up to the free HERE account, with billing information.
The search function works fine, and returns expected results, however the calculateroute function throws up "These credentials do not authorize access" as 403.
I have registered a new map, and added to a project linked to the Route API, however I still cannot get it to work.
Any ideas anyone?
It seems V7 is oboslete. Using v8 has solved my issues.
What is the HTTP Status Codes returned ?
401
403
If 403 response, maybe calculateroute function is not available for free accounts ? (Your message "These credentials do not authorize access" may means that...)
You will find here list of status codes form here api: Routing API HTTP status code

LinkedIn api v2 serviceErrorCode:65603 message:Multiple access token provided

After LinkedIn changed his API to v2 my users cannot login on my website anymore. The error message is
Multiple access token provided
With LinkedIn v1 API everything was good. For development purpose I added a second app in my LinkedIn account with a subdomain of the original domain. With the "subdomain"-app I received the error message that v1 is not supported anymore. The "original" domain app still worked with v1 until a couple of days ago. I adjusted the request to v2 and I received the error message "Multiple access token provided". I deleted the subdomain app, but the error still occurred.
With:
https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,profilePicture(displayImage~:playableStreams))&format=json&access_token=xxxx
I receive:
"serviceErrorCode":100,"message":"Unpermitted fields present in PARAMETER: Data Processing Exception while processing fields [/access_token, /format]","status":403
I changed the access token name to oauth2_access_token:
https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,profilePicture(displayImage~:playableStreams))&format=json&oauth2_access_token=xxxxx
I receive:
serviceErrorCode":65603,"message":"Multiple access token provided","status":401
What do I have to do, to provide just one (the right) access token?
Your access token needs to be included in the Authorization: Bearer {token} header of your request. You do not need to append the format=json query parameter as all API responses are returned in JSON format.

HTTPError: 403 Client Error: Forbidden for url: https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee

I'm running into this error when trying to hit any of the Organizations Lookup API endpoints:
HTTPError: 403 Client Error: Forbidden for url: https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee
I also run into this error for the Organization Search API. Which is strange because my "Usage and Limits" console says that these requests were successful. I've tried emailing LMSdeveloperteam#linkedin.com about this error but have gotten no response back.
Here is the permissions my app currently has: permissions
And here is my "Usage and Limits" screen: requests console
There are a number of v2 endpoints that I am able to access successfully and we already have API access so I'm drawing a blank on what else to do other than continue to email LMSdeveloperteam#linkedin.com and post here.
Does anyone have any ideas? LinkedIn support could you look into this please?
can you verify that you have an ADMINISTRATOR account in atleast one organization ?
Depending on your application's permissions, some Organization API
requests may require the authenticated member have a specific
organization role type, such as ADMINISTRATOR. You may lookup access
control information either by member or organizational entity.
could you also try if you have another api call from organization to look if you have access to the organization api ?
https://api.linkedin.com/v2/organizations/{organization ID}

Basic Auth working with username:password but not with key:secret Woocommerce

I have a problem with Basic Authentication in Wordpress, specifically WooCommerce. I'm using wamp as my local server for developing purposes.. now, in the future, I will use Basic Auth with key:secret (as I find it more secure) for developing my program. However, the GET request on wp-json/wc/v1/customers/ returns 401 Error.
{
"code": "woocommerce_rest_cannot_view",
"message": "Sorry, you cannot list resources.",
"data": {
"status": 401
}
}
What I did so far:
Created another admin account, fired up postman and entered account details. Everyting went good as I got 200 HTTP response. Went to WooCommerce -> Settings -> Api/Keys -> Add New. Filled information for the new user, set permission to read/write and generated new customer key and secret. Fired up Postman, user key as username and secret as password, and sent the same GET request as before. GET request returns 401 Error.
I have to mention that currently I have no SSL certificate on my localhost as it is just developing server, and I don't know if that is the cause of my problem.
I feel like every Wordpress problem is unique and hard to replicate. Here's a link with some solutions on WooCommerce authentication, but tbh it usually depends on the specific theme and plugins the site is using.

Accessing a Google Domain's Google Groups from a service account - Keep getting 403 unauthorized

I'm trying to get a list of groups for a domain in Google Api (https://developers.google.com/admin-sdk/directory/v1/reference/groups/list).
I'm using "domain wide delegation", and have a service account from which the web app makes all its requests to Google.
The admin-sdk requires the requesting user to be an administrator, so i'm impersonating a admin user on the given domain.
This works fine with (https://developers.google.com/admin-sdk/directory/v1/reference/users/get), but when I'm trying to use the group api, it fails like this:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Not Authorized to access this resource/api"
}
],
"code": 403,
"message": "Not Authorized to access this resource/api"
}
}
I have checked the the permissions from the domain administrator have been delegated to the service account. And I have also checked that i can access the list of groups, while being logged in as the domain administrator.
Any help or hints is highly appreciated.
Thanks in advance
You will need to add the scope for reading groups.
First, make sure that you properly followed the steps here in this documentation including this steps on how to Instantiate an Admin SDK Directory service object.
It is important because this one shows you how to make API requests using OAuth 2.0 and your service account's credentials to perform Google Apps Domain-wide delegation.
For more information, check these related SO questions:
Google_Service_Directory - (403) Not Authorized to access this resource/api
Received error “Not Authorized to access this resource/api” when trying to use Google Directory API and Service Account Authentication

Resources