<?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: Autodesk Platform Services - Tutorial Trouble in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632348#M6708</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stackoverflow... I'm ready to be banned for my low effort question&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 14:02:00 GMT</pubDate>
    <dc:creator>retug_austin</dc:creator>
    <dc:date>2024-03-11T14:02:00Z</dc:date>
    <item>
      <title>Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12630811#M6704</link>
      <description>&lt;P&gt;Not sure if this is the correct spot to post APS questions, feel free to move this around if this is the wrong spot.&lt;BR /&gt;&lt;BR /&gt;I am following the Autodesk APS example here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://tutorials.autodesk.io/tutorials/simple-viewer/data" target="_blank"&gt;https://tutorials.autodesk.io/tutorials/simple-viewer/data&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Everything so far has been going well, but when I get to part 3 and the try it out step:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;"Start (or restart) the app as usual, and navigate to &lt;A href="http://localhost:8080/api/models" target="_blank"&gt;http://localhost:8080/api/models&lt;/A&gt; in the browser. The server should respond with a JSON list with names and URNs of all objects available in your configured bucket."&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Navigating to "&lt;A href="http://localhost:8080/api/models" target="_blank"&gt;http://localhost:8080/api/models&lt;/A&gt;" results in 403 error code on my end.&lt;/P&gt;&lt;P&gt;Not sure where I've gone wrong. Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image 6 - part 3 giving 403 error code.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1335485i610D409336C821C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image 6 - part 3 giving 403 error code.png" alt="image 6 - part 3 giving 403 error code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Full error message:&lt;/P&gt;&lt;P&gt;"AxiosError: Request failed with status code 403&lt;BR /&gt;at settle (C:\Users\16142\Desktop\Retug\Own Work\APS Tutorial\node_modules\axios\dist\node\axios.cjs:1967:12)&lt;BR /&gt;at IncomingMessage.handleStreamEnd (C:\Users\16142\Desktop\Retug\Own Work\APS Tutorial\node_modules\axios\dist\node\axios.cjs:3066:11)&lt;BR /&gt;at IncomingMessage.emit (node:events:530:35)&lt;BR /&gt;at endReadableNT (node:internal/streams/readable:1696:12)&lt;BR /&gt;at process.processTicksAndRejections (node:internal/process/task_queues:82:21)&lt;BR /&gt;at Axios.request (C:\Users\16142\Desktop\Retug\Own Work\APS Tutorial\node_modules\axios\dist\node\axios.cjs:3877:41)&lt;BR /&gt;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)&lt;BR /&gt;application.js:647&lt;BR /&gt;Process exited with code 1"&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2024 21:20:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12630811#M6704</guid>
      <dc:creator>retug_austin</dc:creator>
      <dc:date>2024-03-10T21:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12630847#M6705</link>
      <description>&lt;P&gt;Seems like a problem with Client ID and Client Secret I think?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went through the last part and I get this popup:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="retug_austin_0-1710106898383.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1335490i9E3841F88859DCA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="retug_austin_0-1710106898383.png" alt="retug_austin_0-1710106898383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code is uploaded on github.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/retug/APSExamples/tree/main/simpleViewer" target="_blank" rel="noopener"&gt;https://github.com/retug/APSExamples/tree/main/simpleViewer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;my .env file looks like this (not uploaded to hide&amp;nbsp;Client ID and Client Secret) :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;APS_CLIENT_ID&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;_____________________________________________&amp;gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;APS_CLIENT_SECRET&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;_________________________________________&amp;gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I got my client ID and client secret off the APS application page.&lt;BR /&gt;&lt;BR /&gt;Edit More Info, error gets thrown at viewer.js, at the getAccessToken function.&lt;BR /&gt;&lt;BR /&gt;async function getAccessToken(callback) {&lt;BR /&gt;try {&lt;BR /&gt;const resp = await fetch('/api/auth/token');&lt;BR /&gt;if (!resp.ok) {&lt;BR /&gt;throw new Error(await resp.text());&lt;BR /&gt;}&lt;BR /&gt;const { access_token, expires_in } = await resp.json();&lt;BR /&gt;callback(access_token, expires_in);&lt;BR /&gt;} catch (err) {&lt;BR /&gt;alert('Could not obtain access token. See the console for more details.');&lt;BR /&gt;console.error(err);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2024 21:57:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12630847#M6705</guid>
      <dc:creator>retug_austin</dc:creator>
      <dc:date>2024-03-10T21:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12631011#M6706</link>
      <description>&lt;P&gt;Ok, some progress, still confused, but I missed a step on the tutorial.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://aps.autodesk.com/en/docs/oauth/v2/tutorials/get-2-legged-token/" target="_blank" rel="noopener"&gt;https://aps.autodesk.com/en/docs/oauth/v2/tutorials/get-2-legged-token/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I replaced the viewer.js getAccessToken function with these lines of code that were generated by ChatGPT:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;async function getAccessToken(callback) {
    try {
       
        const clientId = "______________________________________";
        const clientSecret = "_________________________________";

        // Base64 encode the client ID and client secret
        const concatword = clientId + ":" + clientSecret;
        const base64word = btoa(concatword);

        const url = 'https://developer.api.autodesk.com/authentication/v2/token';
        const body = new URLSearchParams({
            'grant_type': 'client_credentials',
            'scope': 'data:read'
        });

        const resp = await fetch(url, {
            method: 'POST',
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded',
                'Authorization': 'Basic ' + base64word
            },
            body: body
        });

        if (!resp.ok) {
            throw new Error(await resp.text());
        }

        const { access_token, expires_in } = await resp.json();
        callback(access_token, expires_in);
    } catch (err) {
        alert('Could not obtain access token. See the console for more details.');
        console.error(err);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;This seems to work, but not in the intended way the tutorial wants.&lt;BR /&gt;I am bit lost in the documentation at step 2:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://aps.autodesk.com/en/docs/oauth/v2/tutorials/get-2-legged-token/" target="_blank"&gt;https://aps.autodesk.com/en/docs/oauth/v2/tutorials/get-2-legged-token/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;What does "Call the POST token endpoint" mean and how do I do that? Where am I doing this in the tutorial that is uploaded on github? All of this likely can be attributed to my lack of knowledge with web development, so apologies for the likely very basic questions.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 00:52:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12631011#M6706</guid>
      <dc:creator>retug_austin</dc:creator>
      <dc:date>2024-03-11T00:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12631571#M6707</link>
      <description>&lt;P&gt;Well sorry to say, just as you surmised, this is not the right place for this discussion. Please refer to the official APS help channels, e.g., via:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://aps.autodesk.com/get-help" target="_blank"&gt;https://aps.autodesk.com/get-help&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 07:58:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12631571#M6707</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-03-11T07:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632348#M6708</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stackoverflow... I'm ready to be banned for my low effort question&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 14:02:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632348#M6708</guid>
      <dc:creator>retug_austin</dc:creator>
      <dc:date>2024-03-11T14:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632827#M6709</link>
      <description>&lt;P&gt;Many APS questions there are picked up by my colleagues in the DAS developer support and advocacy team, and I don't think &amp;nbsp;we ban anyone... at least I don't... good luck!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 16:57:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632827#M6709</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-03-11T16:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632837#M6710</link>
      <description>&lt;P&gt;I say this in jest, back in my early years of learning python ~8 years ago now, I made what I will admit was a very low effort post on stackoverflow.&lt;BR /&gt;&lt;BR /&gt;I came back the next day to a very large red warning on my computer screen saying I had banned from stackoverflow for 48 hrs due to my egregious actions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I felt really bad about myself for some silly internet points.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 17:01:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632837#M6710</guid>
      <dc:creator>retug_austin</dc:creator>
      <dc:date>2024-03-11T17:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632866#M6711</link>
      <description>&lt;P&gt;I must admit I sometimes wish we applied such rules here in this forum as well &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I am also happy that we get by with hardly any rules at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I think we are on the verge of being able to set up an AI to handle all simple and repetitive questions automatically, and forward only the interesting ones to more advanced handlers, and also flag the content accordingly, so that passive readers can be informed up front what is worth looking at and what not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If done right that could eliminate the need for any rules and improve the quality of the forum and the discussions at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wishful thinking? Optimistic? We'll see, and I am looking forward to seeing...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 17:13:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632866#M6711</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-03-11T17:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632916#M6712</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@jeremy_tammik&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, I think we are on the verge of being able to set up an AI to handle all simple and repetitive questions automatically, and forward only the interesting ones to more advanced handlers, and also flag the content accordingly, so that passive readers can be informed up front what is worth looking at and what not.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I like it, should be a good way to cut down on spam and repeat questions. It can go too far though. I made post on stackoverflow yesterday about this problem, and it took me a solid 15 mins of editing to make the AI not flag it is as spam.&lt;BR /&gt;&lt;BR /&gt;I realized I was using a much more conversational tone as compared to the typical stackoverflow required tone of "X is not working, I have tried Y, looking for solution Z".&lt;BR /&gt;&lt;BR /&gt;Rewording the post took some time and likely did yield a much better post, but it was almost too much AI control.&lt;BR /&gt;&lt;BR /&gt;I am sure you can find the right balance on your end.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 17:28:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632916#M6712</guid>
      <dc:creator>retug_austin</dc:creator>
      <dc:date>2024-03-11T17:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk Platform Services - Tutorial Trouble</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632970#M6713</link>
      <description>&lt;P&gt;You can use the AI to reformulate the post for you, so that the other AI at the other end will find it acceptable &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out "&lt;A href="https://duckduckgo.com/?q=ai+email+writer" target="_blank" rel="noopener"&gt;ai email writer&lt;/A&gt;" and "&lt;A href="https://duckduckgo.com/?q=ai+email+summariser" target="_blank" rel="noopener"&gt;ai email summariser&lt;/A&gt;"... I have seen some funny descriptions of how the human writes a few sloppy words, the AI creates a beautiful and verbose message from that, and the other human at the other end uses the AI to summarise the verboseness into a very few (not so sloppy) terse words.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 17:49:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/autodesk-platform-services-tutorial-trouble/m-p/12632970#M6713</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-03-11T17:49:42Z</dc:date>
    </item>
  </channel>
</rss>

