Skip to content
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

spark subscribe fails silently when not logged in #128

Open
zsup opened this issue Jan 7, 2015 · 5 comments
Open

spark subscribe fails silently when not logged in #128

zsup opened this issue Jan 7, 2015 · 5 comments
Labels

Comments

@zsup
Copy link
Member

zsup commented Jan 7, 2015

If you're not logged in, spark subscribe fails. That's totally fine as you don't have credentials, but it doesn't show an error message, so for a while I thought that spark subscribe was broken; it took me a bit to realize that I needed to log in (after which point it worked).

@zsup zsup changed the title spark subscribe fails when not logged in spark subscribe fails silently when not logged in Jan 7, 2015
@kennethlimcp
Copy link
Contributor

@zsup, is it an expired access token or no login?

I just spark logout and tested the subscribe:

KEN-MBP:~ kennethlimcp$ spark subscribe
You're not logged in.  Please login using "spark cloud login" before using this command 
KEN-MBP:~ kennethlimcp$ spark subscribe mine
You're not logged in.  Please login using "spark cloud login" before using this command 
KEN-MBP:~ kennethlimcp$ spark subscribe events
You're not logged in.  Please login using "spark cloud login" before using this command 
KEN-MBP:~ kennethlimcp$ 

@zsup
Copy link
Member Author

zsup commented Jan 7, 2015

Oh good call. Probably an expired token then?

On Tuesday Jan 6, 2015 at 4:21 PM, Kenneth Lim notifications@github.com, wrote:

@zsup, is it an expired access token or no login?

I just spark logout and tested the subscribe:

KEN-MBP:~ kennethlimcp$ spark subscribe
You're not logged in.  Please login using "spark cloud login" before using this command 
KEN-MBP:~ kennethlimcp$ spark subscribe mine
You're not logged in.  Please login using "spark cloud login" before using this command 
KEN-MBP:~ kennethlimcp$ spark subscribe events
You're not logged in.  Please login using "spark cloud login" before using this command 
KEN-MBP:~ kennethlimcp$ 

Reply to this email directly or view it on GitHub:
#128 (comment)

@kennethlimcp
Copy link
Contributor

There has been some similar situations like this before. I'm thinking it might be:

1.) Expired access token
2.) First time new installation

I'm on latest version 0.4.92 when i did the test.

@kennethlimcp
Copy link
Contributor

@emilyrose,

i verified that this has to do with an expired token and the checks to verify that the access token is not expired isn't working.

Steps to reproduce:

1.) perform a spark logout
2.) enter your password and remove the access token
3.) Copy the access token and go to the .spark folder
4.) Paste the access token and enter your user name (remember the " ")
5.) try spark subscribe and you will see it end abruptly

@kennethlimcp
Copy link
Contributor

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

No branches or pull requests

3 participants