Error 502 - Bad Gateway at  forums.arcgis.com//ajax.php?do=quickedit&p=361501

3483
5
Jump to solution
01-29-2014 03:41 AM
ShaningYu
Frequent Contributor
This is the actually the same as my thread at http://forums.arcgis.com/threads/101596-Microsoft-JScript-runtime-error-xhrFailed-when-switch-V2.5-t....  But this one has a better title to describe the problem.  When I switch JS V form 2.x to 3.x (e.g. 3.80), I got Error 502 - Bad Gateway at  forums.arcgis.com//ajax.php?do=quickedit&p=361501.  How can this be solved?  Thanks.
0 Kudos
1 Solution

Accepted Solutions
JeffPace
MVP Alum
I added the script call to my application (using v3.8 of the api)

I do not get any errors


  <script src="http://code.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>         <script type="text/javascript" >             dojoConfig = {                 parseOnLoad: false,                         async:true,                 baseUrl: '/arcgis_js_api/library/3.8/arcgis/js/dojo/dojo',                 packages: [{name: 'org', location: hostPath + '/..' + '/mobile/org'},                     {name: 'agsjs', location: hostPath + '/..' + '/mobile/agsjs'},                     {name: 'com', location: hostPath + '/..' + '/js/com'},                     {name: 'utilities', location: hostPath + '/..' + '/mobile/utilities'}                 ],                 isDebug: false,                 usePlainJson: false             };         </script>         <script src="/arcgis_js_api/library/3.8/arcgis/?v=3.8"></script>

View solution in original post

0 Kudos
5 Replies
ShaningYu
Frequent Contributor
Re-run got the HTTP error different, 302 at Host: js.arcgis.com and URL: /3.8/.  From http://www.checkupdown.com/status/E302.html, it means Moved temporarily.  How can it be solved?
0 Kudos
ShaningYu
Frequent Contributor
I tried some scripts with API 3.x sourced from ESRI samples.  Those work fine.  That means it should not be issue of V3.x itsself.  In my application, I  use jquery-1.10.2.js.  I suspected some kind of conflict due to the use of jquery.  Then I added
       <script src="http://code.jquery.com/jquery-1.10.2.js"  type="text/javascript"></script>
before or after      <script src="http://js.arcgis.com/3.8/"></script>
into the ESRI's script.  Re-run debugging on the script, some errors pop out.  It means that the conflict between JS API 3.x and jquery exists.  However, if I use JS API 2.x (e.g. 2.1 through 2.7), there is no problem.
Therefore, I would like raise this issue to ESRI developer Team for their attention.
0 Kudos
JeffPace
MVP Alum
I added the script call to my application (using v3.8 of the api)

I do not get any errors


  <script src="http://code.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>         <script type="text/javascript" >             dojoConfig = {                 parseOnLoad: false,                         async:true,                 baseUrl: '/arcgis_js_api/library/3.8/arcgis/js/dojo/dojo',                 packages: [{name: 'org', location: hostPath + '/..' + '/mobile/org'},                     {name: 'agsjs', location: hostPath + '/..' + '/mobile/agsjs'},                     {name: 'com', location: hostPath + '/..' + '/js/com'},                     {name: 'utilities', location: hostPath + '/..' + '/mobile/utilities'}                 ],                 isDebug: false,                 usePlainJson: false             };         </script>         <script src="/arcgis_js_api/library/3.8/arcgis/?v=3.8"></script>
0 Kudos
ShaningYu
Frequent Contributor
Jeff:  I tested some simple scripts.  You are right.  It must be some hidden bugs in the script I have.  I will checked this thread as solved as your credit.  Thanks.
Update:  Just checked and detected that 1 problem is due to
dojo.require("agsjs.dijit.TOC");
with this code, map is not displayed.  I will open another thread for this issue.
0 Kudos
ShaningYu
Frequent Contributor
0 Kudos