-
Notifications
You must be signed in to change notification settings - Fork 8
Error in GA authentication #28
Comments
That is not |
@eouia The first message is an error: |
@E3V3A It maybe because of unhandled promise in this file: opn(url) As you see opn(url) returns a promise but has not been handled. Hence the warning. opn(url).catch((error) => {}); Let me know |
@dev-z Hi! Thank you so much for trying to help. Unfortunately I have broken my RPi from a shitty Kernel update, so I need fix that first before I can run the test. BTW. You also posted this: opn(uri).then((res) => {
console.info(res);
}, (err) => {
console.error(err);
}); What would be the difference? |
@E3V3A The difference is that in case of opn(url).catch((error) => {}); I am just concerned about the error handling. I do not handle the success scenario; whereas, in case of opn(uri).then((res) => {
console.info(res);
}, (err) => {
console.error(err);
}); I am logging the success response as well as the error. Use the former if you are not concerned about the success scenario. |
When running the google-auth.sh script, it spits out an error before you have a chance to enter anything. However, it still runs and gives the token you need.
It seem to be a problem in the
opn
library, so I filed an issue there.The text was updated successfully, but these errors were encountered: