๐Ÿˆ
ยป Forums ยป Freelancers ยป Upwork API: Always getting Warning: 299 - "Ac...
Page options
sandip31
Community Member

Upwork API: Always getting Warning: 299 - "Accessing API with invalid key"

Hi,
I have an API key that I am using to call the get_user_info function to retrieve the authenticated users' information. After successfully initializing an upwork.Client, I am getting the access_key and refresh_token as a response from

token = client.get_access_token(authz_code)

response,

 

{'access_token': 'oauth2v2_xxxxxxxxxxxxxxxxxxxxx',
 'expires_at': 1706799812.539603,
 'expires_in': 86400,
 'refresh_token': 'oauth2v2_xxxxxxxxxxxxxxxxxxxxx',
 'token_type': 'Bearer'}

 


After that, I am calling

pprint(auth.Api(client).get_user_info())

which always returns

 

{'error': {'code': 299, 'message': 'Warning: 299 - "Accessing API with invalid key"', 'status': 299}, 'server_time': 1706713424}

 


Here' I am using python-upwork-oauth2 library and trying to execute a sample app provided at
https://github.com/upwork/python-upwork-oauth2/blob/master/example/myapp.py
repo.

Does anyone know whats wrong here?

23 REPLIES 23
thamer_baccouch
Community Member

started to have this problem on Monday (29-01-2024) as well, It was working perfectly fine before.

mykolakozak
Community Member

We have the same problem as well started at 02/01/24

Hi Mykola,

 

I am sorry to hear about the issue with the API key. I can see that you've already raised a support ticket regarding your concern. You can access your support tickets here. Note that support requests are responded to in the order they are received. Kindly allow 24-48 hours for the team to follow up with you and assist you further.

 

- Pradeep

Upwork
bohart
Community Member

I got the same issue/error since Jan 24, 2024.
So, it looks like the issue has occurred for many users since the end of Jan.

Hi Bohdan,

 

Apologies for the inconvenience caused due to an error while using API. I shared your report with our team and one of our agents will reach out to you using a support ticket to assist you further. You can access your support tickets here.

 

- Pradeep

Upwork
dev-3
Community Member

Hi Pradeep, 
We have the same issue 
When trying to work with your Upwork API, the constant response is Warning: 299 - "Accessing API with invalid key." It is not possible to call any of the API methods
Was that resolved to anybody at least? 

Hi Dmytro,

 

I see the team has responded to the support ticket you raised about your API concerns. Please coordinate with the team by replying to your ticket here or by email; they'll surely assist you accordingly.

 

~ Arjay
Upwork
it_delta
Community Member

Hello Team,

I got the same issue/error since Feb 6, 2024.
So, it looks like the issue has occurred for many users since the end of Jan.

 

Hi Maxim,

 

I've escalated your community post to a support ticket. I'm sorry to learn about this experience. One of our agents will contact you soon on this page to assist.

 

~ Arjay
Upwork
negrusti
Community Member

Same issue.

spectralua
Community Member

Is same. 2 days as down.

This api v1 shutdown was anounced for jan 2024. I think is powered off. New GraphQL api unusable so we have no api anymore.

Upwork unable to create anything but like to destroy created already. Crazy management.

negrusti
Community Member

Upwork APIv1 is down from 2024-02-08 10:56:17 UTC

negrusti
Community Member

the auth route in that Python module still uses APIv1 which is no longer operational:

 

def get_user_info(self):
    """Get info of authenticated user"""
    return self.client.get("/auth/v1/info")

 

Hello Gregory,

 

I see that you've recently raised a support ticket regarding your concern. As soon as the next available agent gets your ticket in their queue, they'll contact you to assist you further.

~ Luiggi
Upwork
negrusti
Community Member

Thanks Luiggi, I figured it out and asked to close the ticket

franb89
Community Member

Hey Gregory, Did you fix it? Can you share the fix?

negrusti
Community Member

There is no fix, I believe APIv1 was shut down permanently as planned long time ago - need to migrate to APIv2 (GraphQL)

franb89
Community Member

Hello, I have the same issue. Any fix for this bug?

walledmsoliman
Community Member

Hi all, 

I am having the same problem when trying to use the PHP Upwork library and getting the following error whenever I try to fetch any data as in this example here

The Error : [message] => Warning: 299 - "Accessing API with invalid key"

Can you please help me out with this issue? 

I appreciate any help you can provide.

Walled M.Soliman

Hi Walled,

 

I can see that you already have an open ticket regarding this issue. One of our agents will update your ticket and assist you further.

~ Joanne
Upwork

Hi Joanne,

Unfortunately, since Monday, I haven't received any response to help me with this issue! can you please help?

Thanks In advance ^^

Walled M.Soliman

naveenr
Community Member

Is there any update on this issue. I am also facing The Error : [message] => Warning: 299 - "Accessing API with invalid key"

walledmsoliman
Community Member

Hi All, 

Does anyone know how to access the "Contracts" query through GraphQL? whenever I try to fetch it I get that the contract isn't implemented, If anyone can provide an example for it, it would be great, Thanks in advance.

contracts(

SortAttributeSortAttribute
paginationPagination

)FreelancerProfileContractsConnection!

Latest Articles
Top Upvoted Members