-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
login button is disabled #174
Comments
which login button? |
looks like something similar was logged in #101. what happens when you set the browser locale to English (US)? |
Yes. The button is grayed out and not clickable.
|
Thanks. My browser locale is English(US).
|
i can't reproduce that behavior on my side. if you could open up the browser developer tools and let us know whether an error is being logged or a resource is failing to load, that would be really helpful. |
Here is error from Console I sent to Bill Major before:
Uncaught TypeError: b.Portal is not a constructor
at main.min.js:2
at qa (dojo.js:16)
at dojo.js:16
at pa (dojo.js:16)
at la (dojo.js:16)
at d (dojo.js:18)
at HTMLScriptElement.<anonymous> (dojo.js:21)
(anonymous) @ main.min.js:2
qa @ dojo.js:16
(anonymous) @ dojo.js:16
pa @ dojo.js:16
la @ dojo.js:16
d @ dojo.js:18
(anonymous) @ dojo.js:21
|
Hi,
I installed agoassistant on another machine and have the same problem.
Thanks,
Weihong
[cid:[email protected]]
From: Weihong Zhu
Sent: Monday, April 10, 2017 3:41 PM
To: 'Esri/ago-assistant' <[email protected]>; Esri/ago-assistant <[email protected]>
Cc: Author <[email protected]>
Subject: RE: [Esri/ago-assistant] login button is disabled (#174)
Here is error from Console I sent to Bill Major before:
Uncaught TypeError: b.Portal is not a constructor
at main.min.js:2
at qa (dojo.js:16)
at dojo.js:16
at pa (dojo.js:16)
at la (dojo.js:16)
at d (dojo.js:18)
at HTMLScriptElement.<anonymous> (dojo.js:21)
(anonymous) @ main.min.js:2
qa @ dojo.js:16
(anonymous) @ dojo.js:16
pa @ dojo.js:16
la @ dojo.js:16
d @ dojo.js:18
(anonymous) @ dojo.js:21
From: john gravois [mailto:[email protected]]
Sent: Monday, April 10, 2017 3:35 PM
To: Esri/ago-assistant <[email protected]<mailto:[email protected]>>
Cc: Weihong Zhu <[email protected]<mailto:[email protected]>>; Author <[email protected]<mailto:[email protected]>>
Subject: Re: [Esri/ago-assistant] login button is disabled (#174)
i can't reproduce that behavior on my side. if you could open up the browser developer tools<https://urldefense.proofpoint.com/v2/url?u=https-3A__developer.chrome.com_devtools&d=DwMFaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=hqIyf67xGQg5kg6GiGiVIw&m=BVSh-O0mqHFkzdE9dV7BdGKIOt98s_GbDajVrvAH3Xo&s=doMhvAcisbCu9U5FdnCIc8L8etPsdfuEYR7m2nWXcOQ&e=> and let us know whether an error is being logged or a resource is failing to load, that would be really helpful.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Esri_ago-2Dassistant_issues_174-23issuecomment-2D293098538&d=DwMFaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=hqIyf67xGQg5kg6GiGiVIw&m=BVSh-O0mqHFkzdE9dV7BdGKIOt98s_GbDajVrvAH3Xo&s=TpOr5jxI__nsnfZzIm79dSFqXenXjS1HjKdThKbYCbQ&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AZgjw9Qyrmv2sJ-5F6F-2DKk7LIlHesVvh-2Ddks5ruq6egaJpZM4M5WD5&d=DwMFaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=hqIyf67xGQg5kg6GiGiVIw&m=BVSh-O0mqHFkzdE9dV7BdGKIOt98s_GbDajVrvAH3Xo&s=TXuzAsCfK0oEeYfhtgn6Qsf9IoylvFbcUfyhwKdfBEw&e=>.
|
Is this happening in multiple browsers (Chrome, Firefox, etc)? |
Have you tried downloading again just to rule out any issues with the original zip file? Also, just double checking, can you confirm you downloaded the built app and not the source code? |
OK, two issues. I think you've got a mismatch of folders because you shouldn't be able to "build" the app from the zip file I linked. That's the pre-built app with no dev components. I just downloaded and verified it works fine. Here are two things to try troubleshooting next. First, try downloading the latest release and unzip to a clean directory. That is the pre-built app so you don't need to do anything other than copy it to IIS and load it. Second, if you want to build the app from the source, then double check that you have installed all of the dependencies with Give those a shot and let us know what happens. |
Thanks Evan. The “Log in to ArcGIS Online” button is working now. But after clicked it, I got this error:
[cid:[email protected]]
When I tried to build the app from the source, I didn’t get any error but get warning message. Do I have to build the app if I want to modify the app?
Thanks,
Weihong
From: Evan Caldwell [mailto:[email protected]]
Sent: Tuesday, April 11, 2017 10:37 AM
To: Esri/ago-assistant <[email protected]>
Cc: Weihong Zhu <[email protected]>; Author <[email protected]>
Subject: Re: [Esri/ago-assistant] login button is disabled (#174)
OK, two issues. I think you've got a mismatch of folders because you shouldn't be able to "build" the app from the zip file I linked. That's the pre-built app with no dev components. I just downloaded and verified it works fine. Here are two things to try troubleshooting next.
First, try downloading the latest release<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Esri_ago-2Dassistant_releases_download_v2.7.2_ago-2Dassistant-2D2.7.2.zip&d=DwMFaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=hqIyf67xGQg5kg6GiGiVIw&m=DPuqmr5VCB9BNai3vRzgTqtfXjn63S7_hZ5LDQH2Frc&s=RY47u9sVrhsmdcF_mR_qn2rsTcVR-dTL7OSrzIAOrRc&e=> and unzip to a clean directory. That is the pre-built app so you don't need to do anything other than copy it to IIS and load it.
Second, if you want to build the app from the source, then double check that you have installed all of the dependencies with npm install and that there aren't any errors during that or the build step. If your error messages above are from a custom build, then it looks like there is a problem with the portal library which would indicate a problem with the rollup step in grunt.
Give those a shot and let us know what happens.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Esri_ago-2Dassistant_issues_174-23issuecomment-2D293339763&d=DwMFaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=hqIyf67xGQg5kg6GiGiVIw&m=DPuqmr5VCB9BNai3vRzgTqtfXjn63S7_hZ5LDQH2Frc&s=5yPqOGTF8e6Sf4pCmF2ppul55AzvbkHIRVCEIDqMXkM&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AZgjw133ZxKS8E2fssNueKaQdNDlHit5ks5ru7pKgaJpZM4M5WD5&d=DwMFaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=hqIyf67xGQg5kg6GiGiVIw&m=DPuqmr5VCB9BNai3vRzgTqtfXjn63S7_hZ5LDQH2Frc&s=IfDI9LMOIeUFtg2xcRVzT9cxqY6BY5ScjrCGckWWhWw&e=>.
|
The screenshot isn't coming through, but I'm guessing it says "invalid redirect_uri." To use your own app id (or to further customize the app) you'll need to build it from source. The instructions step you through that process, but it sounds like you've already started down that path. What are the warnings you get during the build? |
The screenshots aren't coming through. Can you paste the text? The reason it's not working out of the box is because it is registered for OAuth in an ArcGIS Online org with a pre-defined set of valid redirect URIs and your local dev server is not registered as one of those URIs. When you register the app in your own org, you can add a redirect URI for your own dev environment so it will work. Portal logins should work out of the box (OAuth is only used for ArcGIS Online logins in this app). A workaround to your immediate issue is to bypass OAuth: select the Portal option, then enter |
Here is all the message when I run grunt:
C:\projects\JSprojects\content_agoassistant>grunt
Running "clean:src" (clean) task
> 0 paths cleaned.
Running "clean:build" (clean) task
> 0 paths cleaned.
Running "string-replace:config" (string-replace) task
1 files created
Running "string-replace:version" (string-replace) task
2 files created
Running "eslint:all" (eslint) task
Running "shell:command" (shell) task
'rollup' is not recognized as an internal or external command,
operable program or batch file.
Warning: Command failed: rollup -c
'rollup' is not recognized as an internal or external command,
operable program or batch file.
Use --force to continue.
Aborted due to warnings.
Thanks,
Weihong
From: Evan Caldwell [mailto:[email protected]]
Sent: Tuesday, April 11, 2017 11:19 AM
To: Esri/ago-assistant <[email protected]>
Cc: Weihong Zhu <[email protected]>; Author <[email protected]>
Subject: Re: [Esri/ago-assistant] login button is disabled (#174)
The screenshots aren't coming through. Can you paste the text?
The reason it's not working out of the box is because it is registered for OAuth in an ArcGIS Online org with a pre-defined set of valid redirect URIs and your local dev server is not registered as one of those URIs. When you register the app in your own org, you can add a redirect URI for your own dev environment so it will work.
Portal logins should work out of the box (OAuth is only used for ArcGIS Online logins in this app). A workaround to your immediate issue is to bypass OAuth: select the Portal option, then enter https://www.arcgis.com as your portal url and then your normal org credentials. That will bypass OAuth and get you into your account.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Esri_ago-2Dassistant_issues_174-23issuecomment-2D293354376&d=DwMFaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=hqIyf67xGQg5kg6GiGiVIw&m=oJCm7xooItCDboljZwWkE1ugf6aYs52X2mREG4z37_E&s=RXs-SczgUDSbn7wufo57oPKn2DJMF7gZmUnAIHDm2_s&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AZgjw64I-5FSSPgMudPmK7C05dF6iuk2weks5ru8QegaJpZM4M5WD5&d=DwMFaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=hqIyf67xGQg5kg6GiGiVIw&m=oJCm7xooItCDboljZwWkE1ugf6aYs52X2mREG4z37_E&s=gyaE9EqGK_meQHdgQ1z2v8j55QerjUr8MYrga00uQ1c&e=>.
|
Rollup isn't installed. Try installing it globally from the command line |
Great! I'll take a look and see if we can clarify how to deploy the app in the documentation. |
I downloaded the recent release ago-assistant-2.7.2.zip from https://github.com/Esri/ago-assistant/releases and installed the ago-assistant tool on my local server. But the login button is disabled. The language setting for my browser is English(United States). Anyone have any idea about this?
thanks!
The text was updated successfully, but these errors were encountered: