<?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: XMLHttpRequest NETWORK_ERR in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608898#M4302</link>
    <description>&lt;P&gt;Your browser might have certificates that are not installed on the server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way to diagnose is for someone with access to the server to run the following&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;openssl s_client -showcerts -connect &lt;A href="http://www.domain.com:443" target="_blank"&gt;myapp.foo.com:443&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have access to the server.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2016 18:00:22 GMT</pubDate>
    <dc:creator>tony.mandatori</dc:creator>
    <dc:date>2016-10-07T18:00:22Z</dc:date>
    <item>
      <title>XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608697#M4299</link>
      <description>&lt;P&gt;I have a library script that makes an XMLHttpRequest to a REST API. &amp;nbsp;The script works fine if I set the XMLHttpRequest URL to &lt;A href="http://myapi.foo.com" target="_blank"&gt;http://myapi.foo.com&lt;/A&gt;, but when I try to change the request to &lt;A href="https://myapi.foo.com" target="_blank"&gt;https://myapi.foo.com&lt;/A&gt; (notice the&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/U&gt; in https), the script fails with a NETWORK_ERR and no additional error information. &amp;nbsp;I am able to execute the same request from Chrome developer tools and Firefox developer tools&amp;nbsp;using the https URL&amp;nbsp;without issue. &amp;nbsp;Has anyone else encountered this issue? &amp;nbsp;Are there any other ways to make an HTTPS request in PLM Scripting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failing Script:&lt;/P&gt;&lt;PRE&gt;var APIURL = "https://myapi.foo.com";
var xhr = new XMLHttpRequest();
xhr.open('PUT',APIURL);
xhr.send(); // fails here
var response = xhr.responseText;&lt;/PRE&gt;&lt;P&gt;Successful Script:&lt;/P&gt;&lt;PRE&gt;var APIURL = "http://myapi.foo.com";
var xhr = new XMLHttpRequest();
xhr.open('PUT',APIURL);
xhr.send();
var response = xhr.responseText;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 16:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608697#M4299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-07T16:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608876#M4300</link>
      <description>Hi,&lt;BR /&gt;If you take he https:// route via manual browser typing in, does it stay https or it redirects to http protocol?</description>
      <pubDate>Fri, 07 Oct 2016 17:51:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608876#M4300</guid>
      <dc:creator>gasevsm</dc:creator>
      <dc:date>2016-10-07T17:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608888#M4301</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just performed this in Chrome, and it in fact the request stays https and even shows that the TLS/SSL certificate is valid and trusted. &amp;nbsp;I was able to get a little more error information from the error log attached to my script. &amp;nbsp;The full error is:&amp;nbsp;&lt;SPAN&gt;[XMLHttpRequest] org.mozilla.javascript.JavaScriptException: NETWORK_ERR.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 17:57:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608888#M4301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-07T17:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608898#M4302</link>
      <description>&lt;P&gt;Your browser might have certificates that are not installed on the server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way to diagnose is for someone with access to the server to run the following&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;openssl s_client -showcerts -connect &lt;A href="http://www.domain.com:443" target="_blank"&gt;myapp.foo.com:443&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have access to the server.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 18:00:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608898#M4302</guid>
      <dc:creator>tony.mandatori</dc:creator>
      <dc:date>2016-10-07T18:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608911#M4303</link>
      <description>We don't install certs on server. Something else may be going on here. This should work both https and http. I'll do some tests and share..</description>
      <pubDate>Fri, 07 Oct 2016 18:05:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608911#M4303</guid>
      <dc:creator>gasevsm</dc:creator>
      <dc:date>2016-10-07T18:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608924#M4304</link>
      <description>&lt;P&gt;Thanks for your help Martin! &amp;nbsp;It's greatly appreciated. &amp;nbsp;The &lt;A href="https://myapi.foo.com" target="_blank"&gt;https://myapi.foo.com&lt;/A&gt; is obviously a fictitious URL, but I can provide you with my actual API URL on a private thread if it helps you to diagnose this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 18:10:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6608924#M4304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-07T18:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6613704#M4305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a few customers running into similar situations and posted on this Forum:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/fusion-lifecycle-forum/xmlhttprequest-in-action-script/m-p/4378373/highlight/true#M2003" target="_blank"&gt;http://forums.autodesk.com/t5/fusion-lifecycle-forum/xmlhttprequest-in-action-script/m-p/4378373/highlight/true#M2003&lt;/A&gt; : Authentication required since it is a secured channel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/fusion-lifecycle-forum/javascript-require-method/m-p/6388586/highlight/true#M5255" target="_blank"&gt;http://forums.autodesk.com/t5/fusion-lifecycle-forum/javascript-require-method/m-p/6388586/highlight/true#M5255&lt;/A&gt; : Signed certificate issue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/fusion-lifecycle-forum/network-err-for-xlmhttprequest-in-a-script/m-p/5371617/highlight/true#M3369" target="_blank"&gt;http://forums.autodesk.com/t5/fusion-lifecycle-forum/network-err-for-xlmhttprequest-in-a-script/m-p/5371617/highlight/true#M3369&lt;/A&gt; : Authentification should be encoded&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your snipplet, it seems that you didn't include the Authentication information in the request. If you tested with chrome you may have an active session already running. &amp;nbsp;I suggest that you open a new Chrome in Incognito mode and try again the https and analyse&amp;nbsp;the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 01:21:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6613704#M4305</guid>
      <dc:creator>dany.poudrier</dc:creator>
      <dc:date>2016-10-11T01:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6615061#M4306</link>
      <description>&lt;P&gt;Hi Dany,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the recommendations. &amp;nbsp;I have unfortunately viewed all of the forum threads that you reference, and they do not address the issue that i'm encountering. &amp;nbsp;The API URL that i'm trying to access is a RESTful service that we developed in house. &amp;nbsp;The service does not currently require authentication or an Authorization header of any kind. &amp;nbsp;Additionally, the service is stateless, so no sessions are created and Chrome would not have an auth session associated with this API. &amp;nbsp;We are able to successfully access this service from other environments without issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great if the PLM scripting debugger provided a more verbose error message. &amp;nbsp;We aren't sure how to proceed at this point because the error message is so generic (NETWORK_ERR).&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 14:58:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6615061#M4306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-11T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6615071#M4307</link>
      <description>I'm looking into this with assistance of Autodesk Cloud OPS. Thanks for your patience,</description>
      <pubDate>Tue, 11 Oct 2016 15:00:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6615071#M4307</guid>
      <dc:creator>gasevsm</dc:creator>
      <dc:date>2016-10-11T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6620957#M4308</link>
      <description>&lt;P&gt;Thank you for your assistance with this. &amp;nbsp;I believe the issue was actually caused by my third party hosting provider for my external API. &amp;nbsp;I was able to resolve by moving my API to a different host.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:54:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6620957#M4308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-13T17:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: XMLHttpRequest NETWORK_ERR</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6621372#M4309</link>
      <description>Pleasure. Very glad you found a solution.</description>
      <pubDate>Thu, 13 Oct 2016 20:31:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/xmlhttprequest-network-err/m-p/6621372#M4309</guid>
      <dc:creator>gasevsm</dc:creator>
      <dc:date>2016-10-13T20:31:56Z</dc:date>
    </item>
  </channel>
</rss>

