Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

ArcGIS login issue #30

Open
robertjsandor opened this issue May 6, 2022 · 9 comments
Open

ArcGIS login issue #30

robertjsandor opened this issue May 6, 2022 · 9 comments

Comments

@robertjsandor
Copy link

Been using this code to teach my beginning AWS students- great project! I've just tested this again and now having problems with the map background not loading. Looks like ArcGIS is requiring a password. After signing in and going to the rides.html page, the page now has a popup showing:

Please sign in to access the item on ArcGIS Online (0e02e6f86d02455091796eaae811d9b5)

Not sure if ArcGIS has made this data private or some other issue. Hopefully someone can let me know what a fix could be. Thanks in advance,
Bob

@boyney123
Copy link

Thanks for raising the issue @robertjsandor , I will take a look and get back to you

@jeffsec-aws
Copy link

jeffsec-aws commented May 11, 2022

Hi,
It is related to the loading of https://js.arcgis.com/4.3/dojo/dojo.js from ride.html

The version 4.3 references the public item ID 0e02e6f86d02455091796eaae811d9b5 while from version 4.5 it points to 92c551c9f07b4147846aae273e822714.

So changing in aws-serverless-webapp-workshop/resources/code/WildRydesVue/src/views/Ride.vue from @import 'https://js.arcgis.com/4.3/esri/css/main.css'; to @import 'https://js.arcgis.com/4.23/esri/css/main.css should solve it.

Cool way to force consumers to update their library dependencies.

Jeff

@robertjsandor
Copy link
Author

robertjsandor commented May 11, 2022 via email

@jeffsec-aws
Copy link

I am still running some tests. Seems like 4.23 changes the behavior of the Click (from pickup location to zoom in).

I am testing with 4.5 to maintain the initial behavior. I will try to narrow down the best version you go with, but you can start with 4.5.

@robertjsandor
Copy link
Author

robertjsandor commented May 11, 2022 via email

@boyney123
Copy link

Thanks for taking a look @jeffsec-aws, would you recommend we update to 4.5 for now? Or wait until you have found the best version to go for?

I can also take a look, but feels like you have the best context at the moment, let me know if you need any help.

@jeffsec-aws once you are happy are you OK to raise a PR with a fix?

@boyney123
Copy link

Strange, I just ran through the whole thing, tested on Chrome and Firefox and everything seems to be working for me?

I can request unicorns and see them come to my position fine.

I wonder if they have fixed something or not, @robertjsandor or @jeffsec-aws can you try again with the repo version as it is? Could you provide screenshots of the bug, and also the network tab (loading in the resource versions).

Also out of interest what browser versions are you using?

I can't seem to replicate the issue.

@pepecuencar
Copy link

Then is css line and script line?
It seems to work when i changed css line to 4.5 and script line to 4.5 too, thanks!!!

@Trent1900
Copy link

my one worked on version 4.6. thanks very much, that bothered me for the last 20 hours.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants