rstudio / actions

GitHub Actions for use with RStudio software.
MIT License
7 stars 11 forks source link

Deploy returns 404 and fails, but actually deployed successfully on Connect #18

Closed andrie closed 3 years ago

andrie commented 3 years ago

I have deployed an app on two different Connect servers, and in both cases the deployment succeeds, but the Connect return code is 404, so github actions think that the deployment fails.

Here is a (redacted) version of the output:

Run rstudio/actions/connect-publish@main
  with:
    url: https://***@xxxxxxxxxxxxxxxx.com
    access-type: logged_in
    force: true
    require-vanity-path: true
    dir: ./team-admin-call-classroom-api:/team-admin-call-classroom-api

    show-logs: false
    update-env: true
  env:
    APP_DIR: team-admin-call-classroom-api
    RSCONNECT_URL: https://xxxxxxxxxxxx.com
    RSCONNECT_USERNAME: andrie
    CONNECT_API_KEY_RSTUDIOSERVICES: ***
    CONNECT_ENV_SET_COLORADO_CONNECT_API_KEY: ***
publishing ./team-admin-call-classroom-api to https://xxxxxxxxx.com/team-admin-call-classroom-api/
     id: 1720
   name: team-admin-call-classroom-api
   guid: xxxxxx
  title: 
Error: Error: Request failed with status code 404

connect-publish results:
      id: -1
     dir: ./team-admin-call-classroom-api
     url: 
  status: ✘

Error: Error: unsuccessful publish of dirs=./team-admin-call-classroom-api
meatballhat commented 3 years ago

Do you know if you get different behavior when deploying via the IDE, or with rsconnect or rsconnect-python?

andrie commented 3 years ago

I deploy frequently to both these servers, using a combination of push-button and git-backed deployment, and never get any problems. I've never tried rsconnect-python. I've also frequently used rsconnect::deployApp() and also don't tend to have any problems.

meatballhat commented 3 years ago

Thank you, @andrie!