Skip to content

Improve retries when uploading worker results? #8969

@sigurdm

Description

@sigurdm
Error:
    RequestException(status = 502)
    
    <html><head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>502 Server Error</title>
    </head>
    <body text=#000000 bgcolor=#ffffff>
    <h1>Error: Server Error</h1>
    <h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
    <h2></h2>
    </body></html>
    

Stack:
    #0      Client.requestJson.<anonymous closure> (package:api_builder/_client_utils.dart:67:5)
    <asynchronous suspension>
    #1      PubApiClient.taskUploadResult (package:_pub_shared/src/pubapi.client.dart:515:7)
    <asynchronous suspension>
    #2      RetryOptions.retry (package:retry/retry.dart:131:16)
    <asynchronous suspension>
    #3      _analyzePackage (package:pub_worker/src/analyze.dart:242:15)
    <asynchronous suspension>
    #4      analyze (package:pub_worker/src/analyze.dart:95:11)
    <asynchronous suspension>
    #5      main.<anonymous closure> (file:///home/worker/pub-dev/pkg/pub_worker/bin/pub_worker.dart:36:7)
    <asynchronous suspension>
    #6      main (file:///home/worker/pub-dev/pkg/pub_worker/bin/pub_worker.dart:35:5)
    <asynchronous suspension>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions