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

Extraction API giving 403 Forbidden #13

Closed
claudiosv opened this issue Jul 11, 2019 · 4 comments
Closed

Extraction API giving 403 Forbidden #13

claudiosv opened this issue Jul 11, 2019 · 4 comments

Comments

@claudiosv
Copy link

Hi, I loaded the pre-trained model and trying the predict in interactive mode on the sample function given in Input.java. However, the Extraction API (https://ff655m4ut8.execute-api.us-east-1.amazonaws.com/production/extractmethods) used in the code is giving a 403 Forbidden error, like issue #7.

I'd be happy to modify the JavaExtractor to output the required data as in the JSON normally returned by the API. It would be easier to do this if some examples of the response JSON were available.

Thank you!

@urialon
Copy link
Contributor

urialon commented Jul 11, 2019

Hi Claudio, thanks for letting me know. I'll take care of it and let you know once it is fixed.

@claudiosv
Copy link
Author

Hi Uri, thank you for your super fast response!

@urialon
Copy link
Contributor

urialon commented Jul 11, 2019

Hi @claudiosv ,
Can you please change the extraction API here: https://github.com/tech-srl/code2seq/blob/master/interactive_predict.py#L7
to this:

https://po3g2dx2qa.execute-api.us-east-1.amazonaws.com/production/extractmethods

it works for me.
I will change this in the code and in the websites.
Let me know how it goes

@claudiosv
Copy link
Author

Hi @urialon ,

It works! You're a legend! Thank you so much.

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