-
Notifications
You must be signed in to change notification settings - Fork 99
Natural Language API hangs forever - does not resolve #273
Comments
@joseocasioserra this almost sounds like a firewall issue, can you confirm that you're able to |
@bcoe thanks for the prompt reply.
|
@joseocasioserra looks like you can reach the external server, is there an |
@bcoe other APIs work fine, like Cloud Storage which I already tested I have tried everything I can think of - new ec2 instances, isolated scripts and all the @google-cloud/language versions. UPDATE: Forgot to mention: The reason why I am leaning towards an issue in the library is because I also replicated the code on python and it works perfectly on python; however, in my specific use case I need to use node. I am currently doing setInterval each second to print out the promise and it never resolves and after a while it errors out due to timeout. This is the output of that function.
Any ideas or fixes are more than welcome. |
@bcoe Hello, Just wondering if you saw my previous response, I am still blocked by this issue. Thanks! |
Is there any solution? |
Thank you for filing this issue. It looks like we asked you for more information from your logs but didn't receive that information. We are unable to proceed with this issue until then, so we are closing it. Please feel free to re-open this issue with more information. |
The following issue only happens on a server, locally works fine.
When using the Natural Language API, the call that produces the sentiment analysis of a text ( analyzeSentiment() ) hangs indefinitely; however, other APIs such as Cloud Storage work fine.
This is a similar issue that I found: googleapis/google-cloud-node#1955 which was resolved by an updated version of the library.
I isolated the issue by only running the following piece of code, taken straight from the documentation.
Both environments (local, ec2) have the same setup: google creds, npm version, node version, languageAPI version
Environment details
@google-cloud/language
version: 3.2.4Steps to reproduce
Thanks!
The text was updated successfully, but these errors were encountered: