Access denied ;-(

The server returned 502.

ServerException {#1558
  -request: Request {#1539
    -method: "GET"
    -requestTarget: null
    -uri: Uri {#1536
      -scheme: "https"
      -userInfo: ""
      -host: "my.rightsdesk.com"
      -port: null
      -path: "/api/public/v1/teams/1c4dd618-a333-44d1-bca3-3f836737e2c4"
      -query: "api_token=y0x9jAUbIdwfCLyQkDqMqfabg5Pj2LFZpNZqWhOGv13gtKADt47ZYPPB2Fxn"
      -fragment: ""
    }
    -headers: array:3 [
      "User-Agent" => array:1 [
        0 => "GuzzleHttp/6.3.3 curl/7.58.0 PHP/7.3.9-1+ubuntu18.04.1+deb.sury.org+1"
      ]
      "Host" => array:1 [
        0 => "my.rightsdesk.com"
      ]
      "Accept" => array:1 [
        0 => "application/json"
      ]
    ]
    -headerNames: array:3 [
      "user-agent" => "User-Agent"
      "host" => "Host"
      "accept" => "Accept"
    ]
    -protocol: "1.1"
    -stream: Stream {#1538
      -stream: stream resource @49
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 0
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -response: Response {#1556
    -reasonPhrase: "Bad Gateway"
    -statusCode: 502
    -headers: array:5 [
      "Server" => array:1 [
        0 => "nginx/1.18.0 (Ubuntu)"
      ]
      "Date" => array:1 [
        0 => "Tue, 23 Apr 2024 20:23:45 GMT"
      ]
      "Content-Type" => array:1 [
        0 => "text/html; charset=utf-8"
      ]
      "Content-Length" => array:1 [
        0 => "166"
      ]
      "Connection" => array:1 [
        0 => "keep-alive"
      ]
    ]
    -headerNames: array:5 [
      "server" => "Server"
      "date" => "Date"
      "content-type" => "Content-Type"
      "content-length" => "Content-Length"
      "connection" => "Connection"
    ]
    -protocol: "1.1"
    -stream: Stream {#1554
      -stream: stream resource @56
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 166
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -handlerContext: []
  #message: """
    Server error: `GET https://my.rightsdesk.com/api/public/v1/teams/1c4dd618-a333-44d1-bca3-3f836737e2c4?api_token=y0x9jAUbIdwfCLyQkDqMqfabg5Pj2LFZpNZqWhOGv13gtKADt47ZYPPB2Fxn` resulted in a `502 Bad Gateway` response:\n
    <html>\r\n
    <head><title>502 Bad Gateway</title></head>\r\n
    <body>\r\n
    <center><h1>502 Bad Gateway</h1></center>\r\n
    <hr><center>ngin (truncated...)\n
    """
  #code: 502
  #file: "/var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php"
  #line: 113
  trace: {
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 {
      › 
      ›     return new $className($message, $request, $response, $previous, $ctx);}
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/guzzle/src/Middleware.php:66 {    }    throw RequestException::create($request, $response);}
      arguments: {
        $request: Request {#1539}
        $response: Response {#1556}
      }
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/promises/src/Promise.php:203 {if (isset($handler[$index])) {    $promise->resolve($handler[$index]($value));} elseif ($index === 1) {
      arguments: {
        Response {#1556}
      }
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/promises/src/Promise.php:156 {foreach ($handlers as $handler) {    self::callHandler($id, $value, $handler);}
      arguments: {
        $index: 1
        $value: Response {#1556}
        $handler: array:3 [ …3]
      }
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/promises/src/TaskQueue.php:47 {while ($task = array_shift($this->queue)) {    $task();}
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/promises/src/Promise.php:246 {    $this->waitFn = null;    $wfn(true);} catch (\Exception $reason) {
      arguments: {
        true
      }
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/promises/src/Promise.php:223 {} elseif ($this->waitFn) {    $this->invokeWaitFn();} elseif ($this->waitList) {
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/promises/src/Promise.php:267 {while (true) {    $result->waitIfPending();}
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/promises/src/Promise.php:225 {} elseif ($this->waitList) {    $this->invokeWaitList();} else {
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/promises/src/Promise.php:62 {{    $this->waitIfPending();}
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/guzzle/src/Client.php:131 {    $options[RequestOptions::SYNCHRONOUS] = true;    return $this->requestAsync($method, $uri, $options)->wait();}
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/vendor/guzzlehttp/guzzle/src/Client.php:89 {        ? $this->requestAsync(substr($method, 0, -5), $uri, $opts)        : $this->request($method, $uri, $opts);}
      arguments: {
        $method: "get"
        $uri: "https://my.rightsdesk.com/api/public/v1/teams/1c4dd618-a333-44d1-bca3-3f836737e2c4"
        $options: array:4 [ …4]
      }
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/src/Api/Team.php:68 {    ],    'query'   => $query,]);
      arguments: {
        $method: "get"
        $args: array:2 [ …2]
      }
    }
    /var/www/digital-bookfair.com/wp-content/plugins/rightsdesk/src/Traits/Catalog.php:137 {if (!empty(get_query_var('team'))) {    $team = $this->team->team(get_query_var('team'));    $args['team'] = $team;
      arguments: {
        $slug: "1c4dd618-a333-44d1-bca3-3f836737e2c4"
      }
    }
    /var/www/digital-bookfair.com/wp-includes/shortcodes.php:343 {
      › 
      › $output = $m[1] . call_user_func( $shortcode_tags[ $tag ], $attr, $content, $tag ) . $m[6];arguments: {
        $attrs: array:2 [ …2]
        $content: ""
        ...: {
          "catalog"
        }
      }
    }
    do_shortcode_tag() {}
    /var/www/digital-bookfair.com/wp-includes/shortcodes.php:218 {$pattern = get_shortcode_regex( $tagnames );$content = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $content );arguments: {
        $regex: "/\[(\[?)(catalog)(?![\w-])([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)/"
        $callback: "do_shortcode_tag"
        $subject: "[catalog headline="Catalog" channel="rightsdesk-public-website"]\n"
      }
    }
    /var/www/digital-bookfair.com/wp-includes/class-wp-hook.php:287 {} elseif ( $the_['accepted_args'] >= $num_args ) {\t$value = call_user_func_array( $the_['function'], $args );} else {
      arguments: {
        "/var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/resources/views/page.blade.php"
      }
    }
    /var/www/digital-bookfair.com/wp-includes/plugin.php:206 {
      › 
      › $filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );arguments: {
        $value: "/var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/resources/views/page.blade.php"
        $args: array:1 [ …1]
      }
    }
    /var/www/digital-bookfair.com/wp-includes/post-template.php:253 { */$content = apply_filters( 'the_content', $content );$content = str_replace( ']]>', ']]&gt;', $content );
      arguments: {
        $tag: "the_content"
        $value: "[catalog headline="Catalog" channel="rightsdesk-public-website"]"
      }
    }
    /var/www/digital-bookfair.com/wp-content/uploads/cache/ad6d5c65a3c19c947a7a2112bf10b57005e1a8d8.php:1 {
      › 
      › <?php the_content() ?><?php echo wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']); ?>
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/Engines/PhpEngine.php:43 {try {    include $__path;} catch (Exception $e) {
      arguments: {
        "/var/www/digital-bookfair.com/wp-content/uploads/cache/fb1e53ea9072331df1b35f1ae87a3313bc1602a3.php"
      }
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/Engines/CompilerEngine.php:59 {// which have been rendered for right exception messages to be generated.$results = $this->evaluatePath($compiled, $data);arguments: {
        $__path: "/var/www/digital-bookfair.com/wp-content/uploads/cache/fb1e53ea9072331df1b35f1ae87a3313bc1602a3.php"
        $__data: array:8 [ …8]
      }
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/View.php:142 {{    return $this->engine->get($this->path, $this->gatherData());}
      arguments: {
        $path: "/var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/resources/views/page.blade.php"
        $data: array:8 [ …8]
      }
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/View.php:125 {
      › 
      › $contents = $this->getContents();}
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/View.php:90 {try {    $contents = $this->renderContents();}
    /var/www/digital-bookfair.com/wp-content/uploads/cache/fb1e53ea9072331df1b35f1ae87a3313bc1602a3.php:4 {  <?php echo $__env->make('partials.page-header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>  <?php echo $__env->make('partials.content-page', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?><?php endwhile; ?>
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/Engines/PhpEngine.php:43 {try {    include $__path;} catch (Exception $e) {
      arguments: {
        "/var/www/digital-bookfair.com/wp-content/uploads/cache/fb1e53ea9072331df1b35f1ae87a3313bc1602a3.php"
      }
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/Engines/CompilerEngine.php:59 {// which have been rendered for right exception messages to be generated.$results = $this->evaluatePath($compiled, $data);arguments: {
        $__path: "/var/www/digital-bookfair.com/wp-content/uploads/cache/fb1e53ea9072331df1b35f1ae87a3313bc1602a3.php"
        $__data: array:8 [ …8]
      }
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/View.php:142 {{    return $this->engine->get($this->path, $this->gatherData());}
      arguments: {
        $path: "/var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/resources/views/page.blade.php"
        $data: array:8 [ …8]
      }
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/View.php:125 {
      › 
      › $contents = $this->getContents();}
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/illuminate/view/View.php:90 {try {    $contents = $this->renderContents();}
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/vendor/roots/sage-lib/Template/Blade.php:58 {    $filesystem = $this->getContainer()['files'];    return $this->{$filesystem->exists($view) ? 'file' : 'make'}($view, $data, $mergeData)->render();}
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/app/helpers.php:55 {{    return sage('blade')->render($file, $data);}
      arguments: {
        $view: "/var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/resources/views/page.blade.php"
        $data: array:6 [ …6]
      }
    }
    /var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/app/filters.php:63 {if ($template) {    echo template($template, $data);    return get_stylesheet_directory().'/index.php';
      arguments: {
        $file: "/var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/resources/views/page.blade.php"
        $data: array:6 [ …6]
      }
    }
    /var/www/digital-bookfair.com/wp-includes/class-wp-hook.php:287 {} elseif ( $the_['accepted_args'] >= $num_args ) {\t$value = call_user_func_array( $the_['function'], $args );} else {
      arguments: {
        "/var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/resources/views/page.blade.php"
      }
    }
    /var/www/digital-bookfair.com/wp-includes/plugin.php:206 {
      › 
      › $filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );arguments: {
        $value: "/var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/resources/views/page.blade.php"
        $args: array:1 [ …1]
      }
    }
    /var/www/digital-bookfair.com/wp-includes/template-loader.php:104 { */$template = apply_filters( 'template_include', $template );if ( $template ) {
      arguments: {
        $tag: "template_include"
        $value: "/var/www/digital-bookfair.com/wp-content/themes/digital-bookfair/resources/views/page.blade.php"
      }
    }
    /var/www/digital-bookfair.com/wp-blog-header.php:19 {// Load the theme template.require_once ABSPATH . WPINC . '/template-loader.php';arguments: {
        "/var/www/digital-bookfair.com/wp-includes/template-loader.php"
      }
    }
    /var/www/digital-bookfair.com/index.php:17 {/** Loads the WordPress Environment and Template */require __DIR__ . '/wp-blog-header.php';arguments: {
        "/var/www/digital-bookfair.com/wp-blog-header.php"
      }
    }
  }
}