Can't create transfer tokens

System Information
  • Strapi Version: 4.11.7
  • Operating System: docker (macOS)
  • Database: postgres
  • Node Version: 18-alpine
  • NPM Version: 8.9.0


I can’t create a Transfer token, I’m getting this reponse in the network request :slight_smile:

{
    "data": null,
    "error": {
        "status": 501,
        "name": "NotImplementedError",
        "message": "The server configuration for data transfer is invalid. Please contact your server administrator.",
        "details": {
            "code": "INVALID_TOKEN_SALT"
        }
    }
}

I haven’t set up any TOKEN SALT, it is the one that it comes in the .env file : ‘toBeModified’

I can successfully create API tokens thou

When I used npx create-strapi-app@latest test-token --quickstart to recreate the issue

I am an version 4.13.6

After the project gets created my .env file has the following.

HOST=0.0.0.0
PORT=1337
APP_KEYS=rZpM7WQYj0KZIxEan479YA==,MnO0zv8WoZSnUtO2ePJRpQ==,xPcFGpfGUxZdwUuWpwMAsQ==,JNUoYXIz5PJFJYFndOMUyw==
API_TOKEN_SALT=IX18SErX0jW4XbxiadQ+dQ==
ADMIN_JWT_SECRET=ggqZq86nPbS35Z7+KBfy1g==
TRANSFER_TOKEN_SALT=zTQvcxedOEjOn2DmMh2bwA==
# Database
DATABASE_CLIENT=sqlite
DATABASE_FILENAME=.tmp/data.db
JWT_SECRET=9NyPb4LeGUCqVspXk9iMgQ==

TRANSFER_TOKEN_SALT just needs to be a string so toBeModified should not cause an errror.

Check your config/admin.js file and see if you have the following.

1 Like

Thank you , Paul.

I realized TRANSFER_TOKEN_SALT was empty, only API_TOKEN_SALT had a value. After adding TRANSFER_TOKEN_SALT to .env it started to work

1 Like

Can you tell us where to get these tokens if they are empty?