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

FIX 403 Error #10

Merged
merged 4 commits into from
Jul 23, 2019
Merged

Conversation

Adizbek
Copy link
Contributor

@Adizbek Adizbek commented Jul 22, 2019

Removed proxy support, as they make more complexity. Fixed token generator.

I am still testing, I haven't get any 403 error yet

Closes #7

@Adizbek Adizbek mentioned this pull request Jul 22, 2019
src/index.js Outdated Show resolved Hide resolved
// config.set('TKK', TKK);
// }
// /* eslint-enable no-undef */
// }
Copy link
Contributor

@ZuBB ZuBB Jul 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no point in keeping commented old code. either remove it or use as much as possible from old approach

@Adizbek
Copy link
Contributor Author

Adizbek commented Jul 22, 2019 via email

@ZuBB ZuBB mentioned this pull request Jul 22, 2019
Copy link
Owner

@iamtraction iamtraction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been testing it for a few times now, I haven't received any 403 errors yet.

And keep the changes in this PR only related to fixing the tkk. Please move formatting changes to a different PR.

Long text wasn't translating. Fixed
Url stays the same while switching to POST, actually should remove q parameter from url. Fixed
@Adizbek Adizbek changed the title [WIP] FIX 403 Error FIX 403 Error Jul 23, 2019
@Adizbek
Copy link
Contributor Author

Adizbek commented Jul 23, 2019

I think I've finished, just check both GET and POST requests. should work as intended.

Copy link
Owner

@iamtraction iamtraction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌

@iamtraction iamtraction merged commit 605b091 into iamtraction:master Jul 23, 2019
@ZuBB
Copy link
Contributor

ZuBB commented Jul 24, 2019

hey @k3rn31p4nic how about releasing new version with this change?

@iamtraction
Copy link
Owner

Gonna do that after I test it with the application where I use it regularly to see if I need to do any changes before releasing.

@Adizbek
Copy link
Contributor Author

Adizbek commented Jul 24, 2019

Some new issue

Error while translating
{ HTTPError
    at translate (/opt/translator/node_modules/@k3rn31p4nic/google-translate-api/src/index.js:143:19)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)
  name: 'HTTPError',
  statusCode: 429,
  statusMessage: 'Too Many Requests' }

@ZuBB
Copy link
Contributor

ZuBB commented Aug 6, 2019

Hi @k3rn31p4nic!

do you have any news on your testing?

a bit offtop: just noticed that this package does not have minimum required version of node to run. I made a quick walk through code and found conts/let and async/await which gives us 'v7.10.1' but probably you know better this kind of stuff. Would be nice to have it in package.json

edit: fixed typo

@iamtraction
Copy link
Owner

do you have any news on your testing?

Yeah, it works.

just noticed that this package does not have minimum required version of node to run.

I'll set the node engine version and make a release soon.

@iamtraction
Copy link
Owner

Released in v1.1.0 🎉

@Adizbek Adizbek deleted the token-generator-fix branch August 17, 2019 13:03
@trungkiendang
Copy link

Some new issue

Error while translating
{ HTTPError
    at translate (/opt/translator/node_modules/@k3rn31p4nic/google-translate-api/src/index.js:143:19)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)
  name: 'HTTPError',
  statusCode: 429,
  statusMessage: 'Too Many Requests' }

Same here, anyone fixed this ?

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

Successfully merging this pull request may close these issues.

TKK generated
4 participants