newrelic-experimental / nr1-command-center

Consolidated Violation Event View
Apache License 2.0
2 stars 4 forks source link

Adding More than 4 Sub Accounts Doesn't Save #18

Closed tdavis13 closed 4 years ago

tdavis13 commented 4 years ago

Description

When adding a fifth account to the Command Center, I am able to add/save it initially and rearrange the accounts. However, after leaving CC and coming back, it has reverted to a prior save and I can only see the 4 accounts previously working.

Steps to Reproduce

Add new 5th account from configuration Save the file Close browser and return

Expected Behaviour

Five accounts to be available after returning.

khpeet commented 4 years ago

If you open browser dev tools and look at the console logs, are there any errors? Either upon saving the 5th account or upon initial load/refresh?

tdavis13 commented 4 years ago

On save:

Saving data in 1 60k chunks index.js:70 Error: GraphQL error: Service Exception: NerdStore.API.Error Server Error (307) at new e (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at Object.next (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at g (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at b (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at t.value (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at wanda--wanda-ec-ui--app-release-1358-prod.js:1 at Set.forEach () at Object.next (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at g (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at b (wanda--wanda-ec-ui--app-release-1358-prod.js:1) index.js:81 Error: GraphQL error: Service Exception: NerdStore.API.Error Server Error (307) at new e (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at Object.next (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at g (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at b (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at t.value (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at wanda--wanda-ec-ui--app-release-1358-prod.js:1 at Set.forEach () at Object.next (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at g (wanda--wanda-ec-ui--app-release-1358-prod.js:1) at b (wanda--wanda-ec-ui--app-release-1358-prod.js:1)

tdavis13 commented 4 years ago

When I return to the page after that, I get the following:

ad5c82d8-f070-4824-823d-5146bf468d55--nr1-command-center-nerdlet.js:1 Uncaught (in promise) TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) at W (ad5c82d8-f070-4824-823d-5146bf468d55--nr1-command-center-nerdlet.js:1) at I. (ad5c82d8-f070-4824-823d-5146bf468d55--nr1-command-center-nerdlet.js:1) at d (runtime.js:45) at Generator._invoke (runtime.js:274) at Generator.forEach.e. [as next] (runtime.js:97) at r (asyncToGenerator.js:3) at o (asyncToGenerator.js:25) at asyncToGenerator.js:32 at new Promise () at I. (asyncToGenerator.js:21)

And I have NO configuration

khpeet commented 4 years ago

Thanks @tdavis13 ! The TypeError: undefined is expected. It looks like the culprit is the first error posted:

index.js:70 Error: GraphQL error: Service Exception: NerdStore.API.Error Server Error (307)

Can you also send me the User-Agent header your browser is sending? You should be able to find it by navigating to: https://www.whatismybrowser.com/detect/what-is-my-user-agent

tdavis13 commented 4 years ago

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 Edg/84.0.522.52

khpeet commented 4 years ago

Thanks! I'm not able to replicate this on my own Edge 84 / Win10 machine, which makes me think there may be some unique browser security settings that may be causing the 307 redirect. To better troubleshoot this, can you shoot me an email at kpeet@newrelic.com with a HAR file? I think inspecting the requests/responses of the GraphQL calls will provide more detail to fix this issue.

To generate a HAR file in Edge: https://support.zendesk.com/hc/en-us/articles/204410413-Generating-a-HAR-file-for-troubleshooting#Edge

Please make sure you add a few accounts via Configuration and click Save before exporting the HAR file.

tdavis13 commented 4 years ago

It appears this may be related to a specific account. I can't even add the account as a '4th' account at this point and have it truly save.

khpeet commented 4 years ago

Is it possible to shoot over via email the account name and ID you are trying to add?