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

Add authentication failure callback #61

Open
Jerry0022 opened this issue Aug 12, 2015 · 3 comments
Open

Add authentication failure callback #61

Jerry0022 opened this issue Aug 12, 2015 · 3 comments

Comments

@Jerry0022
Copy link

Thanks for your great API. It works perfectly!
But! If I set a wrong API key or no API key there is an exception thrown in the http thread...
Exception in thread "Downstream Thread"
java.lang.NullPointerException
com.darkprograms.speech.recognizer.GSpeechDuplex$1.run(GSpeechDuplex.java:197)

Can you enable a possibility to catch it via callback for example?

@Skylion007
Copy link
Collaborator

Hmm, I see. I really do need to fix that. When I wrote that class, I knew next to nothing about multithreading. That is definitely on my long list of things to do.

There is even an if statement that I added awaiting an implementation of that feature. If you are willing to add the callback, I will gladly merge it in.

@Skylion007 Skylion007 changed the title API key wrong? Add authentication failure callback Aug 13, 2015
@Jerry0022
Copy link
Author

Please see pull request ;)

@Skylion007
Copy link
Collaborator

@Jerry0022 Protip; In the future please reference the issue number instead as it will provide an hyperlink to the pull request like so: #64

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

No branches or pull requests

2 participants