wallabyway / ARVRToolkit

Forge AR|VR Toolkit website
http://forgetoolkit.com
MIT License
34 stars 14 forks source link

API issues for the scene setup (204 No Content + 404 Not Found) #13

Closed ClementGermain closed 3 years ago

ClementGermain commented 4 years ago

Hi,

I'm trying to setup a scene through the tuto, but I'm facing a few issues. The first part is working fine, but can't get anything to work at the job creation step.

I got the scene creation working fine with these values

GET 
/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6YXJraXR0ZXN0YnVja2V0L0RhdGFFeHRyYWN0aW9uX1Rlc3RGaWxlLnppcA/scenes/testScene HTTP/1.1
Host: https://developer-api-beta.autodesk.io/arkit/v1
Authorization: Bearer *****

Returns

{
    "prj": {
        "bucketKey": "arkittestbucket",
        "objectId": "urn:adsk.objects:os.object:arkittestbucket/DataExtraction_TestFile.zip",
        "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6YXJraXR0ZXN0YnVja2V0L0RhdGFFeHRyYWN0aW9uX1Rlc3RGaWxlLnppcA"
    }
}
  1. The job post return 204 No Content
    
    POST /job HTTP/1.1
    Host: https://developer-api-beta.autodesk.io/modelderivative/v2/arkit
    Authorization: Bearer *****
    Content-Type: application/json

{ "input": { "urn": "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6YXJraXR0ZXN0YnVja2V0L0RhdGFFeHRyYWN0aW9uX1Rlc3RGaWxlLnppcA" }, "output": { "formats": [ { "type": "arkit", "scene": "testScene" } ] } }


2. Might be related but I'm getting a **404 Not Found** when trying to get the manifest 

GET /dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6YXJraXR0ZXN0YnVja2V0L0RhdGFFeHRyYWN0aW9uX1Rlc3RGaWxlLnppcA/manifest HTTP/1.1 Host: https://developer-api-beta.autodesk.io/modelderivative/v2/arkit Accept-Encoding: gzip, deflate Authorization: Bearer **



Is the documentation up to date? Am I using the correct servers? Or am I missing something?

Note: All the investigation (+ code snippet) as been done using Postman.

Thanks for the help,

Clement
ClementGermain commented 4 years ago

Hi @cyrillef,

Is this something you might be able to assist one?

Thanks

ClementGermain commented 3 years ago

I'm closing it as I've been able to fix it. For future reference, the model upload/translation wasn't' correct, and it caused the URN to be invalid.

Also I'm using https://developer-api.autodesk.io instead of https://developer-api-beta.autodesk.io