Skip to content

Error 502 and Base URL #42

@navneethc

Description

@navneethc

I'm trying to set up an automated deployment pipeline for RShiny Apps in a RStudio/Posit Connect server hosted on-prem.

At the stage where the connect-publish action runs, I get a 502 Gateway Error.

Output from the workflow run in debug mode:

Run <Internal GitHub Org>/rstudio-connect/connect-publish@main
  with:
    url: https://rstudio-connect.internal.domain/
    api-key: ***
    access-type: logged_in
    dir: .:/test-branch-01
  
    force: false
    require-vanity-path: false
    show-logs: false
    update-env: true
    working-directory: .
  env:
    R_LIBS_USER: /home/runner/_work/_temp/Library
    TZ: UTC
    _R_CHECK_SYSTEM_CLOCK_: FALSE
    NOT_CRAN: true
    RSPM: https://packagemanager.posit.co/cran/__linux__/jammy/latest
    RENV_CONFIG_REPOS_OVERRIDE: https://packagemanager.posit.co/cran/__linux__/jammy/latest
    RENV_PATHS_ROOT: /home/runner/_work/_temp/renv
##[debug]using base URL https://rstudio-connect.internal.domain/__api__
Error: Error: Request failed with status code [50](https://github.com/<Internal GitHub Org>/<repo-name>/actions/runs/11520639321/job/32166224220#step:10:50)2
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Publish Connect content

A few things to note:

  • I'm using a clone of this repository unchanged internally, since this action is not available via the GitHub Marketplace and therefore not whitelisted as per policy.
  • I'm using a custom runner in the workflow which can access internal domains in which I need to update an environment variable to get that working. There's a step early on where it is updated.
  • When I run a simple CURL command on a predefined endpoint I get a proper response using the same runner. Endpoint used: https://rstudio-connect.internal.domain/__api__/v1/server_settings/r -- but I hardcoded it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions