NativeScript / playground-feedback

Feedback for NativeScript Playground
Apache License 2.0
16 stars 1 forks source link

When I revisit NativeScript Playground, I am logged in as some random user - not my account. I never logged into that account. Also, I am unable to log out and log back into my account. #199

Open ewpianoman opened 3 years ago

ewpianoman commented 3 years ago

Dear friend, we want to specify that this repo is {N} Playground related. Please use it to provide feedback or report an issue related to {N} Playground only. If your issue is related to {N} itself please report it to the {N} repo or search for a solution in Stack Overflow. All issues which are not related to {N} Playground will be closed.

We appreciate your feedback! While we are doing all we can to take care of every issue, sometimes we get overwhelmed. Because of that, we will consider issues that are not constructive or problems that cannot be reproduced "dead". Additionally, we will treat feature requests or bug reports with unanswered questions regarding the behavior/reproduction for more than 20 days "dead". All "dead" issues will get closed.

Please, provide the details below:

Did you search for the problem in other open issues in this repo?

Tell us about the problem

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Did you try it outside of {N} Playground?

Which browser are you using?

Are there any errors/warnings logged in your browser console?

Which platform(s) does your issue occur on?

Are there any entries logged in the Device Logs tab?

Please provide the following information shown in the devices tab in the playground:

Please tell us how to recreate the issue with as much detail as possible.

The best approach would be to get your code running in the {N} Playground and share the link with us, along with any additional details or steps to reproduce needed for examining the issue there.

imhimanshujain commented 3 years ago

I also faced the same issue. Clearing all the data from devtools (cookies, localstorage, session data) worked for me.

AlexSzeto commented 3 years ago

I also faced the same issue. Clearing all devtools data as well as browser data did not resolve it for me. In fact, this problem persists across browsers into Microsoft Edge, which I've otherwise never used. Here's all the related details I can gather:

Please, provide the details below:

Did you search for the problem in other open issues in this repo?

Yes

Tell us about the problem

Playground always logs into unknown account and logout command fails

Did you try it outside of {N} Playground?

Which browser are you using?

Are there any errors/warnings logged in your browser console?

Which platform(s) does your issue occur on?

Are there any entries logged in the Device Logs tab?

Please provide the following information shown in the devices tab in the playground:

Please tell us how to recreate the issue with as much detail as possible.

Navigating to https://play.nativescript.org/ currently shows me automatically logged in as a user named Zihao CUI. The page always show the "Your Playground is ready!" modal on load. Most of the functions in the Playground continue to work as intended, except for the following:

The following console error occurs:

VM349:1 GET https://play.nativescript.org/api/profile/sessions?t=1605237710439 401
(anonymous) @ VM349:1
y @ polyfills.a038d1bcbce167b1d5bc.js:1
e.scheduleTask @ polyfills.a038d1bcbce167b1d5bc.js:1
onScheduleTask @ polyfills.a038d1bcbce167b1d5bc.js:1
e.scheduleTask @ polyfills.a038d1bcbce167b1d5bc.js:1
t.scheduleTask @ polyfills.a038d1bcbce167b1d5bc.js:1
t.scheduleMacroTask @ polyfills.a038d1bcbce167b1d5bc.js:1
f @ polyfills.a038d1bcbce167b1d5bc.js:1
(anonymous) @ polyfills.a038d1bcbce167b1d5bc.js:1
P.a.<computed> @ polyfills.a038d1bcbce167b1d5bc.js:1
(anonymous) @ main.247477b5d1d96afcee5b.js:1984
e._trySubscribe @ main.247477b5d1d96afcee5b.js:985
e.subscribe @ main.247477b5d1d96afcee5b.js:985
(anonymous) @ main.247477b5d1d96afcee5b.js:985
o @ main.247477b5d1d96afcee5b.js:1984
t._innerSub @ main.247477b5d1d96afcee5b.js:985
t._tryNext @ main.247477b5d1d96afcee5b.js:985
t._next @ main.247477b5d1d96afcee5b.js:985
t.next @ main.247477b5d1d96afcee5b.js:985
(anonymous) @ main.247477b5d1d96afcee5b.js:985
e._trySubscribe @ main.247477b5d1d96afcee5b.js:985
e.subscribe @ main.247477b5d1d96afcee5b.js:985
e.call @ main.247477b5d1d96afcee5b.js:985
e.subscribe @ main.247477b5d1d96afcee5b.js:985
e.call @ main.247477b5d1d96afcee5b.js:985
e.subscribe @ main.247477b5d1d96afcee5b.js:985
e.call @ main.247477b5d1d96afcee5b.js:985
e.subscribe @ main.247477b5d1d96afcee5b.js:985
e.call @ main.247477b5d1d96afcee5b.js:985
e.subscribe @ main.247477b5d1d96afcee5b.js:985
e.call @ main.247477b5d1d96afcee5b.js:985
e.subscribe @ main.247477b5d1d96afcee5b.js:985
n.ngOnInit @ 7.af5b8b175d0d03bd02b0.js:1
(anonymous) @ main.247477b5d1d96afcee5b.js:985
(anonymous) @ main.247477b5d1d96afcee5b.js:985
Yg @ main.247477b5d1d96afcee5b.js:985
gy @ main.247477b5d1d96afcee5b.js:985
(anonymous) @ 7.af5b8b175d0d03bd02b0.js:1
updateDirectives @ main.247477b5d1d96afcee5b.js:985
Wg @ main.247477b5d1d96afcee5b.js:985
Jg @ main.247477b5d1d96afcee5b.js:985
Qg @ main.247477b5d1d96afcee5b.js:985
Wg @ main.247477b5d1d96afcee5b.js:985
Jg @ main.247477b5d1d96afcee5b.js:985
Kg @ main.247477b5d1d96afcee5b.js:985
Wg @ main.247477b5d1d96afcee5b.js:985
e.detectChanges @ main.247477b5d1d96afcee5b.js:985
(anonymous) @ main.247477b5d1d96afcee5b.js:985
e.tick @ main.247477b5d1d96afcee5b.js:985
(anonymous) @ main.247477b5d1d96afcee5b.js:985
e.invoke @ polyfills.a038d1bcbce167b1d5bc.js:1
onInvoke @ main.247477b5d1d96afcee5b.js:985
e.invoke @ polyfills.a038d1bcbce167b1d5bc.js:1
t.run @ polyfills.a038d1bcbce167b1d5bc.js:1
e.run @ main.247477b5d1d96afcee5b.js:985
next @ main.247477b5d1d96afcee5b.js:985
o @ main.247477b5d1d96afcee5b.js:985
t.__tryOrUnsub @ main.247477b5d1d96afcee5b.js:985
t.next @ main.247477b5d1d96afcee5b.js:985
t._next @ main.247477b5d1d96afcee5b.js:985
t.next @ main.247477b5d1d96afcee5b.js:985
t.next @ main.247477b5d1d96afcee5b.js:985
t.emit @ main.247477b5d1d96afcee5b.js:985
Gp @ main.247477b5d1d96afcee5b.js:985
onHasTask @ main.247477b5d1d96afcee5b.js:985
e.hasTask @ polyfills.a038d1bcbce167b1d5bc.js:1
e._updateTaskCount @ polyfills.a038d1bcbce167b1d5bc.js:1
t._updateTaskCount @ polyfills.a038d1bcbce167b1d5bc.js:1
t.runTask @ polyfills.a038d1bcbce167b1d5bc.js:1
g @ polyfills.a038d1bcbce167b1d5bc.js:1
Promise.then (async)
v @ polyfills.a038d1bcbce167b1d5bc.js:1
e.scheduleTask @ polyfills.a038d1bcbce167b1d5bc.js:1
onScheduleTask @ polyfills.a038d1bcbce167b1d5bc.js:1
e.scheduleTask @ polyfills.a038d1bcbce167b1d5bc.js:1
t.scheduleTask @ polyfills.a038d1bcbce167b1d5bc.js:1
t.scheduleMicroTask @ polyfills.a038d1bcbce167b1d5bc.js:1
S @ polyfills.a038d1bcbce167b1d5bc.js:1
T @ polyfills.a038d1bcbce167b1d5bc.js:1
(anonymous) @ polyfills.a038d1bcbce167b1d5bc.js:1
c @ runtime.6165185e3cd5a5edcf36.js:1
(anonymous) @ 7.af5b8b175d0d03bd02b0.js:1
Show 40 more frames
7.af5b8b175d0d03bd02b0.js:1 getUserSessions error t {headers: e, status: 401, statusText: "OK", url: "https://play.nativescript.org/api/profile/sessions?t=1605237710439", ok: false, …}error: nullheaders: e {normalizedNames: Map(0), lazyUpdate: null, lazyInit: ƒ}message: "Http failure response for https://play.nativescript.org/api/profile/sessions?t=1605237710439: 401 OK"name: "HttpErrorResponse"ok: falsestatus: 401statusText: "OK"url: "https://play.nativescript.org/api/profile/sessions?t=1605237710439"__proto__: Object

A project created under this account is available here: https://play.nativescript.org/?id=R4IoTA&template=play-vue&v=2

AlexSzeto commented 3 years ago

Not sure what is going on here, but the issue had disappeared and I'm able to log back into my own account successfully.