Invoking api with invalid workspace_id is returning error message as 'Not a Long'


#1

Hi,

I tried invoking workspace api with invalid workspace_id.
https://app.asana.com/api/1.0/workspaces/we

Getting response as
{"errors":[{"message":"workspace: Not a Long: we","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]}

But this behavior i observed from past few days.Initially it was returning as
{"errors":[{"message":"workspace: Not a recognized ID: we","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]}

Is there any updates for error messages recently ?

Thanks
PVSReddy


#2

Hi @pvs,

Thanks for reaching out. There have been no recent updates to our error messages.

What workspace information are you trying to request with the API? It looks like you put “we” where the API is expecting a workspace id. You can request to GET all of your workspaces with /workspaces or you can GET a specific workspace with /workspaces/<workspace-id>

Cheers!
Jeff