botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
78 stars 87 forks source link

Push revision data to remove server Bad Request (400) #1622

Closed daehli closed 2 years ago

daehli commented 2 years ago

I try to push data to a remote server with the following command ./bp push and got an error

./bp push --url https://learnbotpress.com --authToken {TOKEN} --sourceDir data
Preparing an archive of your local files from /botpress/data...
Sending archive to server for comparison... (archive size: 66 kb)
Pushing local changes to https://learnbotpress.com...
Error: Could not push changes: Bad Request (400)

and server side

botpress_1  | 03/21/2022 14:37:59.107 HTTP [Versioning] [Error, Error while pushing changes: Request failed with status code 401]
botpress_1  | STACK TRACE
botpress_1  | Error: Error while pushing changes: Request failed with status code 401
botpress_1  |     at /snapshot/botpress/packages/bp/dist/admin/management/versioning/router.js

Step to reproduce

  1. Added - BPFS_STORAGE=database
  2. ./bp pull --url https://learnbotpress.com --authToken {Token} --targetDir data
  3. ./bp push --url https://learnbotpress.com --authToken {Token} --targetDir data

Extra Info

Used Docker Botpress: Version 12.26.11

KrishnaPayyavula commented 1 year ago

Hey @daehli , I have the same scenario, Is this issue got fixed? I wanted to push my local/dev changes to persistent storage, How can I do that?