GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Asynchronous call times out in production · Issue #368 · GoogleCloudPlatform/nodejs-docs-samples

Asynchronous call times out in production #368

New issue
Copy link
New issue
Copy link
Closed
Closed
Asynchronous call times out in production#368
Copy link
Labels
🚨This issue needs some love.triage meI really want to be triaged.

Description

@mishaetaya
mishaetaya
opened on Apr 28, 2017
Issue body actions

the API works fine on localhost, but as soon as I run the async operation in production (on heroku) I get the following error after a few minutes:

Error: Total timeout exceeded before any response was received
  at Timeout._onTimeout (/app/node_modules/google-gax/lib/longrunning.js:347:11)
  at retry (/app/node_modules/google-gax/lib/longrunning.js:327:31)
   at Timer.listOnTimeout (timers.js:207:5)
   at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)

the operation.promise() never resolves. Any guidance on this?

speech.startRecognition(googleFileUrl, config)
   .then((results) => {
    const operation = results[0];
    return operation.promise();
  })
  .then((results) => {
     var transcription = results[0];
      console.log(`Transcription: ${transcription}`);
  })
  .catch((err) => {
    console.error('Transcription error:', err);
  });

Activity

  1. jmdobry commented on May 2, 2017

    @jmdobry
    jmdobry
    on May 2, 2017
    Member
    More actions

    How long is the audio you're analyzing?

  2. mishaetaya commented on May 3, 2017

    @mishaetaya
    mishaetaya
    on May 3, 2017
    Author
    More actions

    Hi Jason,

    I was testing with clips less than 10 seconds. My site is https, so I discovered that was at the root of my problem. I did made it work by rerouting the post request through http...so it works now, but I guess still my question is why does it not work on a secure route?

    thank you!

  3. jmdobry
    closed this as completedon May 5, 2017
  4. jmdobry commented on May 5, 2017

    @jmdobry
    jmdobry
    on May 5, 2017
    Member
    More actions

    Wait, were you trying to run this code in the browser?

  5. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  6. grayside
    added a commit that references this issue on Oct 26, 2022

    chore(deps): update dependency uuid to v7 (#368)

    a7b0558
  7. grayside
    added a commit that references this issue on Nov 3, 2022

    chore(deps): update dependency uuid to v7 (#368)

    c710257
  8. ace-n
    added 15 commits that reference this issue on Nov 11, 2022

    test: deal with concurrent import (#368)

    497cef3

    test: deal with concurrent import (#368)

    78b1eb8

    chore: release 2.2.2 (#368)

    8a52c36

    chore: release 2.2.2 (#368)

    c3bdb80

    test: deal with concurrent import (#368)

    a9e9b59

    chore: release 2.2.2 (#368)

    63c87eb

    chore: release 2.2.2 (#368)

    61708fe

    test: deal with concurrent import (#368)

    e1ae3f4

    test: deal with concurrent import (#368)

    d7ddf75

    chore: release 3.1.1 (#368)

    8f2359a

    test: deal with concurrent import (#368)

    a034ce8

    test: deal with concurrent import (#368)

    92c2626

    chore: release 3.1.1 (#368)

    9e163b5

    chore: release 5.0.2 (#368)

    0b899ea

    chore: release 5.0.2 (#368)

    cfc11dd
  9. ahrarmonsur
    added a commit that references this issue on Nov 17, 2022

    test: deal with concurrent import (#368)

    a2a2bff
  10. ace-n
    added 4 commits that reference this issue on Nov 17, 2022

    chore: release 5.0.2 (#368)

    331e994

    chore: release 5.0.2 (#368)

    29cb4cf

    chore: release 5.0.2 (#368)

    358db83

    migrate code from googleapis/nodejs-speech (#2857)

    624d200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.