<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reality Capture API get JSON parse error after authorize! in ReCap Forum</title>
    <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7622744#M13600</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience! Some recent "Content-Type" header updates on our service broke our sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've posted the fixes on my GitHub fork &lt;A href="https://github.com/eugene-chua/photo-to-3D-sample" target="_blank"&gt;https://github.com/eugene-chua/photo-to-3D-sample&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Eugene&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 05:59:24 GMT</pubDate>
    <dc:creator>eugene.chua</dc:creator>
    <dc:date>2017-12-14T05:59:24Z</dc:date>
    <item>
      <title>Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7619138#M13597</link>
      <description>&lt;P&gt;I've trying to use the Reality Caputre API to convert 2d photo to 3d model with example on:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Autodesk-Forge/photo-to-3d-sample" target="_blank"&gt;https://github.com/Autodesk-Forge/photo-to-3d-sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when after I finish authorize, the browser cannot load the explore.ejs engine with error at the console:&lt;/P&gt;&lt;P&gt;SyntaxError: Unexpected token o in JSON at position 1&lt;BR /&gt;at JSON.parse (&amp;lt;anonymous&amp;gt;)&lt;BR /&gt;at C:\Users\hongducphan\Desktop\photo-to-3d-sample\phototo3d.js:79:33&lt;BR /&gt;at Request.handleRequestResponse [as _callback] (C:\Users\hongducphan\Desktop\photo-to-3d-sample\node_modules\unirest\index.js:463:26)&lt;BR /&gt;at Request.self.callback (C:\Users\hongducphan\Desktop\photo-to-3d-sample\node_modules\request\request.js:187:22)&lt;BR /&gt;at emitTwo (events.js:126:13)&lt;BR /&gt;at Request.emit (events.js:214:7)&lt;BR /&gt;at Request.&amp;lt;anonymous&amp;gt; (C:\Users\hongducphan\Desktop\photo-to-3d-sample\node_modules\request\request.js:1044:10)&lt;BR /&gt;at emitOne (events.js:116:13)&lt;BR /&gt;at Request.emit (events.js:211:7)&lt;BR /&gt;at IncomingMessage.&amp;lt;anonymous&amp;gt; (C:\Users\hongducphan\Desktop\photo-to-3d-sample\node_modules\request\request.js:965:12)&lt;BR /&gt;200 - [object Object]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me, I really need this api to use for my project.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 04:53:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7619138#M13597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T04:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7620287#M13598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for participating in our Community! I will forward this to our development team and will give you an update as soon as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you and have a great day!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 14:03:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7620287#M13598</guid>
      <dc:creator>anil_mistry</dc:creator>
      <dc:date>2017-12-13T14:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7621127#M13599</link>
      <description>&lt;P&gt;Thank you a lot &lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1999021" target="_self"&gt;&lt;SPAN&gt;anil.mistry&lt;/SPAN&gt;&lt;/A&gt;!! I hope this bug will fix soon.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 17:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7621127#M13599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T17:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7622744#M13600</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience! Some recent "Content-Type" header updates on our service broke our sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've posted the fixes on my GitHub fork &lt;A href="https://github.com/eugene-chua/photo-to-3D-sample" target="_blank"&gt;https://github.com/eugene-chua/photo-to-3D-sample&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Eugene&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 05:59:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7622744#M13600</guid>
      <dc:creator>eugene.chua</dc:creator>
      <dc:date>2017-12-14T05:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7622793#M13601</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/423358"&gt;@eugene.chua&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your support. The project is now working but I don't understand after&amp;nbsp;following the instruction until I press the "get result" button, It's return a message include an error code:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error":{"code":"22","msg":"Data is not ready"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know this thing is problem or an api is working? And the result of this project is return the 3d model object or only the JSON data? Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 06:41:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7622793#M13601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T06:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7622941#M13602</link>
      <description>&lt;P&gt;That's good news!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You scene is currently processing. If you click on the "Get Results" button after a few minutes, you should get a valid download link in the response.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 08:02:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7622941#M13602</guid>
      <dc:creator>eugene.chua</dc:creator>
      <dc:date>2017-12-14T08:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7623121#M13603</link>
      <description>&lt;P&gt;Great! The problem was solved! Thank you very much&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/423358"&gt;@eugene.chua&lt;/a&gt;. Can you explain me how can I get the photo from my local computer, not from aws link in phototo3d.js? I've tried to override these link but it's cannot convert. Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 09:37:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7623121#M13603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T09:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7623272#M13604</link>
      <description>For direct file uploads, you can refer to the “Step 3 - Uploading Files Directly” section of the tutorial &lt;A href="https://developer.autodesk.com/en/docs/reality-capture/v1/tutorials/create-3d-mesh-from-photos/" target="_blank"&gt;https://developer.autodesk.com/en/docs/reality-capture/v1/tutorials/create-3d-mesh-from-photos/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you are familiar with cURL, you would need to make a call similar to ...&lt;BR /&gt;&lt;BR /&gt;curl -v '&lt;A href="https://developer.api.autodesk.com/photo-to-3d/v1/file" target="_blank"&gt;https://developer.api.autodesk.com/photo-to-3d/v1/file&lt;/A&gt;' \&lt;BR /&gt;-X 'POST' \&lt;BR /&gt;-H 'Authorization: Bearer eyjhbGCIOIjIuzI1NiISimtpZCI6...' \&lt;BR /&gt;-F "photosceneid=hcYJcrnHUsNSPII9glhVe8lRF6lFXs4NHzGqJ3zdWMU" \&lt;BR /&gt;-F "type=image" \&lt;BR /&gt;-F "file[0]=@c:/sample_data/_MG_9026.jpg" \&lt;BR /&gt;-F "file[1]=@c:/sample_data/_MG_9027.jpg"&lt;BR /&gt;&lt;BR /&gt;To prevent timeouts, I would recommend uploading only one file at a time (instead of multiple files in a single call)&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Dec 2017 10:57:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7623272#M13604</guid>
      <dc:creator>eugene.chua</dc:creator>
      <dc:date>2017-12-14T10:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7623870#M13605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply and I am glad to&amp;nbsp;hear&amp;nbsp;that the issue is now resolved. Please, let us know if you have any other concerns or questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you and have a great day!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 14:34:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7623870#M13605</guid>
      <dc:creator>anil_mistry</dc:creator>
      <dc:date>2017-12-14T14:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7635186#M13606</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/423358"&gt;@eugene.chua&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to upload images directly from my local computer like the image. It was cause an error: "500 - Internal server error" and the console return a message: "&lt;SPAN&gt;200 - [object Object]".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know what problem was affect this. Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://drive.google.com/open?id=1s4ckF3VGN8SXi45mad9ieJKEAQBVXeSK" target="_blank"&gt;https://drive.google.com/open?id=1s4ckF3VGN8SXi45mad9ieJKEAQBVXeSK&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 14:13:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7635186#M13606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-19T14:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reality Capture API get JSON parse error after authorize!</title>
      <link>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7658013#M13607</link>
      <description>&lt;P&gt;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are modifying the node.js sample code, you will have to use the&amp;nbsp;Uploading Files&amp;nbsp;feature&amp;nbsp;of the unirest library (&lt;A href="http://unirest.io/nodejs.html" target="_blank"&gt;http://unirest.io/nodejs.html&lt;/A&gt;), for example ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	unirest.post(endpoint)
	.header('Accept', 'application/json')
	.header('Content-Type', 'multipart/form-data')
	.header('Authorization', 'Bearer ' + access_token)
	.field('type', 'image')
	.field('photosceneid', sceneId)
	.attach('file[0]', urlArray[0])
	.attach('file[1]', urlArray[1])&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should also remove the '@' prefix from your file paths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 08:29:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/recap-forum/reality-capture-api-get-json-parse-error-after-authorize/m-p/7658013#M13607</guid>
      <dc:creator>eugene.chua</dc:creator>
      <dc:date>2018-01-02T08:29:34Z</dc:date>
    </item>
  </channel>
</rss>

