Skip to content

Instantly share code, notes, and snippets.

@mikeumus
Last active June 23, 2016 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeumus/3009551317730c65a1a839c98e5d9762 to your computer and use it in GitHub Desktop.
Save mikeumus/3009551317730c65a1a839c98e5d9762 to your computer and use it in GitHub Desktop.
{"developerMessage":"The authorization code/refresh token is expired or invalid/redirect_uri must have the same value as in the authorization request.","userMessage":"","errorCode":"AUTH-004","more info":"http://developer-stg.api.autodesk.com/documentation/v1/errors/AUTH-004"}
mikeumus:~/workspace $ curl -X 'GET'er.api.autodesk.com/modelderivative/v2/designdata/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXl0ZXN0YnVja2V0dGVzdDIvZ2lyaS1zaXItY29weTIucnZ0/manifest'* Hostname was NOT found in DNS cache
* Trying 107.23.72.59...
* Connected to developer.api.autodesk.com (107.23.72.59) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
* subject: 1.3.6.1.4.1.311.60.2.1.3=US; 1.3.6.1.4.1.311.60.2.1.2=Delaware; businessCategory=Private Organization; serialNumber=2401504; C=US; postalCode=94903; ST=California; L=San Rafael; street=111 McInnis Parkway; O=Autodesk, Inc.; OU=PDG; CN=developer.api.autodesk.com
* start date: 2016-05-17 00:00:00 GMT
* expire date: 2017-05-17 23:59:59 GMT
* subjectAltName: developer.api.autodesk.com matched
* issuer: C=US; O=Symantec Corporation; OU=Symantec Trust Network; CN=Symantec Class 3 Extended Validation SHA256 SSL CA
* SSL certificate verify ok.
> GET /modelderivative/v2/designdata/dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXl0ZXN0YnVja2V0dGVzdDIvZ2lyaS1zaXItY29weTIucnZ0/manifest HTTP/1.1
> User-Agent: curl/7.35.0
> Host: developer.api.autodesk.com
> Accept: */*
> Authorization: Bearer qXEdkHx8Hl75ASqMh4tDnqzt0tbg
>
< HTTP/1.1 200 OK
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: *
< Content-Type: application/json; charset=utf-8
< Date: Thu, 23 Jun 2016 18:52:08 GMT
* Server Apigee Router is not blacklisted
< Server: Apigee Router
< x-ads-app-identifier: platform-viewing-2016.05.03.1102.2f6bfbf-production
< x-ads-duration: 163 ms
< x-ads-error-id:
< x-ads-startup-time: Tue Jun 14 12:42:20 UTC 2016
< Content-Length: 414
< Connection: keep-alive
<
* Connection #0 to host developer.api.autodesk.com left intact
{"type":"manifest","hasThumbnail":"false","status":"failed","progress":"complete","region":"US","urn":"dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXl0ZXN0YnVja2V0dGVzdDIvZ2lyaS1zaXItY29weTIucnZ0","derivatives":[{"name":"LMV Bubble","hasThumbnail":"false","status":"failed","progress":"complete","messages":[{"type":"error","message":"Translation failure","code":"TranslationWorker-InternalFailure"}],"outputType":"svf"}]}
XMLHttpRequest cannot load https://developer.api.autodesk.com/viewingservice/v1/viewers/res/locales/en/allstrings.json. The 'Access-Control-Allow-Origin' header has a value 'https://modelderivative.herokuapp.com' that is not equal to the supplied origin. Origin 'https://preview.c9users.io' is therefore not allowed access.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment