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

Error while uploading - debug mode #76

Closed
opensubtitles opened this issue Dec 20, 2020 · 5 comments
Closed

Error while uploading - debug mode #76

opensubtitles opened this issue Dec 20, 2020 · 5 comments

Comments

@opensubtitles
Copy link

Hi,

it is possible to turn on some debug mode ? I need to see what is sent and received to server (http headers + body)

Tha nks

@opensubtitles opensubtitles changed the title Error while uploading Error while uploading - debug mode Dec 20, 2020
@vankasteelj
Copy link
Owner

That will require manual modifications, but yes:

change node_modules/opensubtitles-api/lib/opensubtitles.js, line 35:

original:

if (err) return reject(this.handleError(err))

becomes >>>

if (err) return reject({error:err})

Then launch the app again, press F12 or CTRL+D, and head to the "console" tab of the chrome debugger (on V2.5)

@vankasteelj
Copy link
Owner

This is what the error should look like after modification:
opensubtitles-uploader_tv7lqWe9YJ

@opensubtitles
Copy link
Author

thanks!

@opensubtitles
Copy link
Author

thanks for it, I modified source code, run app again on OSX, trying to upload, I can not see any Network activity and in debug window I got:

image

@opensubtitles
Copy link
Author

would be great to make this default, now it helped me to catch the problem.

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