On loading of WAB app created in WAB Developer 2.3 I am getting a error. How would I track down the source of this?
This only occurs when Layers List widget is included. All layers in the source web map are set to public share.
The "fix" is to update the \jimu.js\tokenUtils.js file
Line 350 changes to:
def = esriNS.id.getCredential(sharingUrl, { oAuthPopupConfirmation: false });
Line 382 changes to:
popup: false,
Thanks. Just so I'm clear: Are you not using node.js to run your WAB Development from desktop but rather are setting up WAB Development on a web server without node.js?
Yes we deploy to IIS!
but good to know none the less . . .
yeah but you shouldn't have had to do that, unless maybe you were trying to deploy your registered development app to IIS?
Yeah good to see your name come up! Hmm, is your deployed wab registered, has a client id and client secret? In your config do you have your appID and cross origin params set?
<SPAN class="string token">"appId"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"YourAppID"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"authorizedCrossOriginDomains"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">"ags.yourdomain.net"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN></SPAN>
Hi David!
In an effort to eliminate that possibility from the equation, I removed all services from the web map! It's totally empty!
I've got a ESRI support case working now -- I suspect it has to do with the fact that my AGOL account is an admin role and perhaps applying some extra level of security to any WAB that I build and deploy. Another developer here without that admin role does not get this secondary login challenge with his WAB deployments.
Good to hear from you!
Take care.
Hi Jamie - this suggests that either all of your layers are not shared the same, or that if you do have org-only or group-only layers in your web map then you have to account for that in your proxy.config:
<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>serverUrl</SPAN> <SPAN class="attr-name token">url</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Futility.arcgis.com" target="_blank">https://utility.arcgis.com</A><SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token">username</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>yourname<SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token">password</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>yourpassword<SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token">matchAll</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>true<SPAN class="punctuation token">"</SPAN></SPAN><SPAN class="punctuation token">/></SPAN></SPAN> <SPAN class="comment token"><!-- For my referenced feature services with stored credentials--></SPAN> <SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>serverUrl</SPAN> <SPAN class="attr-name token">url</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices3.arcgis.com" target="_blank">https://services3.arcgis.com</A><SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token">username</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>yourname<SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token">password</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>yourpassword<SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token">matchAll</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>true<SPAN class="punctuation token">"</SPAN></SPAN><SPAN class="punctuation token">/></SPAN></SPAN> <SPAN class="comment token"><!-- For my hosted feature services --></SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
The font types above will throw an error if you hadn't added those mimes but you have so . . .
A colleague imported the app into his WAB Developer, saved it out and deployed it on the same IIS box (different url), it does not have this behavior.
Something is wrong with my install of WAB Developer I suppose.
As a test, I only have the LayersList and Legend widgets in the deployed application. I've also removed all layers/map services from the source web map.
I still receive the error above!
Any idea what is causing this permissions issue?
Also, I've been told that the IIS has .woff, .woff2 and .svg mime types added but I'm not sure if there is a proxy issue. I've been attempting to simply add these references in the web.config but unsure if they have any affect:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<staticContent>
<!-- Configure site to serve JSON files -->
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<!-- Configure site to serve font files -->
<remove fileExtension=".otf" />
<mimeMap fileExtension=".otf" mimeType="font/otf" />
<!--more font files -->
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
</staticContent>
</system.webServer>
</configuration>
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.