Cannot get tasks for a project

I’ve tried following the documentation and I cannot GET a task for any
project… I keep receiving the error “Resource not found”.

When I try both of these…

GET https://api.freeagent.com/v2/tasks?project=/v2/projects/407234
GET https://api.freeagent.com/v2/tasks

I receive the same error message

{“errors”:{“error”:{“message”:“Resource not found”}}}

I’m testing this on the live version - what could this be?

Yup, I was using a cached version of a project that no longer existed. It
had been deleted or otherwise. The “Resource not found” was referring to
the project not existing. Once I used a project that existed in the
account, everything started working.On Monday, June 3, 2013 11:07:17 AM UTC-4, Andy Jones wrote:

The resource not found may be due to my project being incorrect - I think
I need to look into where my project id is coming from. Hopefully this will
help anyone else who stumbles along the same path as I have,

On Monday, June 3, 2013 10:54:21 AM UTC-4, Andy Jones wrote:

I’ve tried following the documentation and I cannot GET a task for any
project… I keep receiving the error “Resource not found”.

When I try both of these…

GET https://api.freeagent.com/v2/tasks?project=/v2/projects/407234
GET https://api.freeagent.com/v2/tasks

I receive the same error message

{“errors”:{“error”:{“message”:“Resource not found”}}}

I’m testing this on the live version - what could this be?

The resource not found may be due to my project being incorrect - I think I
need to look into where my project id is coming from. Hopefully this will
help anyone else who stumbles along the same path as I have,On Monday, June 3, 2013 10:54:21 AM UTC-4, Andy Jones wrote:

I’ve tried following the documentation and I cannot GET a task for any
project… I keep receiving the error “Resource not found”.

When I try both of these…

GET https://api.freeagent.com/v2/tasks?project=/v2/projects/407234
GET https://api.freeagent.com/v2/tasks

I receive the same error message

{“errors”:{“error”:{“message”:“Resource not found”}}}

I’m testing this on the live version - what could this be?

Can you post some code?

what happens if you hit https://.freeagent.com/projects/407234 ?

I assume you can get /v2/company? or any of the other endpoints (ie,
you have the oauth stuff correct)

I just used the api sandbox (using this url to get in:

) and (once I added the oauth key and secret, and changed the method
to use Bearer in the header) I managed to get this out easily using
this url:

GET /v2/tasks?project=/projects/135074 HTTP/1.1
Host: api.freeagent.com
Content-length: 0
Authorization: Bearer TOKEN GOES HERE

HTTP/1.1 200 OK
X-request-id: 04895e10d2ab4d6feecede889c9d597e
Via: HTTP/1.1 GWA
X-host: web2-gc
X-rev: 4e43fea
X-google-cache-control: remote-fetch
X-runtime: 0.167875
Server: nginx/1.4.1
Connection: keep-alive
Etag: “bff091f6e4f3f066dbaa79d4da38bb2c”
Link:
X-ua-compatible: IE=Edge,chrome=1
Cache-control: max-age=0, private, must-revalidate
Content-type: application/json; charset=utf-8
Content-location: https://api.freeagent.com/v2/tasks?project=/projects/135074

{“tasks”:}

(this project has no tasks)On 3 June 2013 15:54, Andy Jones support@pipethru.com wrote:

I’ve tried following the documentation and I cannot GET a task for any
project… I keep receiving the error “Resource not found”.

When I try both of these…

GET https://api.freeagent.com/v2/tasks?project=/v2/projects/407234
GET https://api.freeagent.com/v2/tasks

I receive the same error message

{“errors”:{“error”:{“message”:“Resource not found”}}}

I’m testing this on the live version - what could this be?


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Nic Wise
t. +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/