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 — DEADLINE_EXCEEDED, google-cloud-vision · Issue #1887 · googleapis/google-cloud-java

DEADLINE_EXCEEDED, google-cloud-vision #1887

New issue
Copy link
New issue
Copy link
Closed
Closed
DEADLINE_EXCEEDED, google-cloud-vision#1887
Copy link
Assignees
garrettjonesgoogle
Labels
api: visionIssues related to the Cloud Vision API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@ikerr
ikerr
opened on Apr 7, 2017
Issue body actions

I am developing a Scala (2.10.6) app that uses the google-cloud-vision Java library (0.11.2-beta), but am getting the following exception: com.google.api.gax.grpc.ApiException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED

I enabled FINE logging and see the following output before the exception occurs (certain values replaced with "BLAH"):

12:46:17.083 [ForkJoinPool-1-worker-3] INFO  io.grpc.internal.ManagedChannelImpl - [ManagedChannelImpl@1e18908b] Created with target vision.googleapis.com:443
[ERROR] Apr 07, 2017 12:46:17 PM io.grpc.internal.ManagedChannelImpl <init>     
[ERROR] INFO: [ManagedChannelImpl@1e18908b] Created with target vision.googleapis.com:443
12:46:17.202 [ForkJoinPool-1-worker-3] INFO  c.g.api.client.http.HttpTransport - -------------- REQUEST  --------------
POST https://accounts.google.com/o/oauth2/token                                 
Accept-Encoding: gzip                                                           
User-Agent: Google-HTTP-Java-Client/1.21.0 (gzip)                               
Content-Type: application/x-www-form-urlencoded; charset=UTF-8                  
Content-Length: 827                                                             
                                                                                
12:46:17.203 [ForkJoinPool-1-worker-3] INFO  c.g.api.client.http.HttpTransport - curl -v --compressed -X POST -H 'Accept-Encoding: gzip' -H 'User-Agent: Google-HTTP-Java-Client/1.21.0 (gz
ip)' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -d '@-' -- 'https://accounts.google.com/o/oauth2/token' << $$$
12:46:17.251 [ForkJoinPool-1-worker-3] INFO  c.g.api.client.http.HttpTransport - Total: 827 bytes
12:46:17.252 [ForkJoinPool-1-worker-3] INFO  c.g.api.client.http.HttpTransport - grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=BLAH
12:46:17.390 [ForkJoinPool-1-worker-3] INFO  c.g.api.client.http.HttpTransport - -------------- RESPONSE --------------
HTTP/1.1 200 OK                                                                 
Transfer-Encoding: chunked                                                      
Alt-Svc: quic=":443"; ma=2592000; v="37,36,35"                                  
Server: ESF                                                                     
X-Content-Type-Options: nosniff                                                 
Pragma: no-cache                                                                
Date: Fri, 07 Apr 2017 19:46:17 GMT                                             
X-Frame-Options: SAMEORIGIN                                                     
Cache-Control: no-cache, no-store, max-age=0, must-revalidate                   
Content-Disposition: attachment; filename="json.txt"; filename*=UTF-8''json.txt 
Content-Encoding: gzip                                                          
Expires: Mon, 01 Jan 1990 00:00:00 GMT                                          
X-XSS-Protection: 1; mode=block                                                 
Content-Type: application/json; charset=utf-8                                   
                                                                                
12:46:17.396 [ForkJoinPool-1-worker-3] INFO  c.g.api.client.http.HttpTransport - Total: 203 bytes
12:46:17.397 [ForkJoinPool-1-worker-3] INFO  c.g.api.client.http.HttpTransport - {
  "access_token" : "BLAH",                                                      
  "expires_in" : 3600,                                                          
  "token_type" : "Bearer"                                                       
}

It looks as if the request for a bearer token succeeded, and yet the method call (batchAnnotateImages) hangs and eventually times out. Here is the code that I'm using:

val imageBytes = ByteString.readFrom(new FileInputStream(filePath))
val image = Image.newBuilder().setContent(imageBytes).build

val request =
  AnnotateImageRequest
    .newBuilder()
    .addFeatures(Feature.newBuilder().setType(Feature.Type.LABEL_DETECTION).build)
    .setImage(image)
    .build
                                                                                
val scopedCredentials = credentials.createScoped(ImageAnnotatorSettings.getDefaultServiceScopes)                          

val channelProvider =
  ImageAnnotatorSettings
    .defaultChannelProviderBuilder()
    .setCredentialsProvider(FixedCredentialsProvider.create(scopedCredentials))
    .build
                                                                                
val settingsBuilder =
  ImageAnnotatorSettings
    .defaultBuilder()
    .setChannelProvider(channelProvider)

settingsBuilder.batchAnnotateImagesSettings().getRetrySettingsBuilder().setTotalTimeout(Duration.standardSeconds(60))
                                                                                
val response =
  ImageAnnotatorClient
    .create(settingsBuilder.build)
    .batchAnnotateImages(List(request))

I do not see the java.lang.UnsatisfiedLinkError reported in: #1430

Any ideas as to what might be going wrong, or further debugging steps that I should try?

Activity

  1. garrettjonesgoogle
    added
    api: visionIssues related to the Cloud Vision API.
    on Apr 12, 2017
  2. garrettjonesgoogle commented on May 30, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on May 30, 2017
    Contributor
    More actions

    We are using a newer version of grpc now - could you try again with a newer version of google-cloud-java?

  3. garrettjonesgoogle
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on May 30, 2017
  4. garrettjonesgoogle commented on Jul 18, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jul 18, 2017
    Contributor
    More actions

    No response, so I'm going to close out this issue. Please re-open if you are still having problems.

  5. garrettjonesgoogle
    closed this as completedon Jul 18, 2017
  6. crazyberry7 commented on Feb 19, 2020

    @crazyberry7
    crazyberry7
    on Feb 19, 2020
    More actions

    Please reopen. I'm experiencing the exact same issue OP had w/ batchAnnotateImages().

  7. JustinBeckwith
    assigned
    garrettjonesgoogle
    on Feb 1, 2021
  8. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore: Update generation configuration at Wed Jun 25 02:32:25 UTC 2025 (

    f1c255a
  9. chingor13
    added a commit that references this issue on Feb 24, 2026

    feat: next release from main branch is 1.43.0 (#1887)

    bec0ece
  10. chingor13
    added a commit that references this issue on Mar 12, 2026

    feat: next release from main branch is 1.43.0 (#1887)

    67885ae
  11. lqiu96
    added a commit that references this issue on Mar 20, 2026

    chore: Update generation configuration at Wed Jun 25 02:32:25 UTC 2025 (

    9834fa4
  12. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    deps: update dependency com.google.api.grpc:proto-google-cloud-trace-…

    4e122d6

    chore(main): release 2.26.0 (googleapis#1885)

    87a5026
  13. meltsufin
    added 7 commits that reference this issue on Apr 29, 2026

    deps: update dependency org.graalvm.buildtools:junit-platform-native …

    2bfa5cc

    chore(main): release 1.126.5 (#1907)

    2969061

    chore(main): release 1.133.0 (#2206)

    a3b6539

    deps: update dependency org.graalvm.buildtools:junit-platform-native …

    4902fc5

    chore(main): release 1.126.5 (#1907)

    c16bf14

    chore(main): release 1.133.0 (#2206)

    1180af9

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    90c0add
  14. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore(main): release 2.27.0 (googleapis#1887)

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

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

api: visionIssues related to the Cloud Vision API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

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.