Skip to content

FST_ERR_VALIDATION - When checking for a CodePush update, I get a 400 Bad Request error with validation failure on deployment_key. #23

@NikhilMasurkar

Description

@NikhilMasurkar

Starting CodePush update check...
NewHome.js:398 Error checking for update: Error: 400: {"statusCode":400,"code":"FST_ERR_VALIDATION","error":"Bad Request","message":"querystring/deployment_key Must be from 10 to 100 characters, querystring/deployment_key Must contain only letters, numbers, underscores, or hyphens"}
at call (native)
at CodePushError (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.indigolearn.onefin.dev:139176:30)
at call (native)
at CodePushHttpError (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.indigolearn.onefin.dev:139186:30)
at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.indigolearn.onefin.dev:139002:95)
at ?anon_0_ (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.indigolearn.onefin.dev:138718:19)
at next (native)
at asyncGeneratorStep (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.indigolearn.onefin.dev:22342:19)
at _next (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.indigolearn.onefin.dev:22356:29)
at tryCallOne (address at InternalBytecode.js:1:1180)
at anonymous (address at InternalBytecode.js:1:1874)

Image Image

I added the following keys in Info.plist for both prod and test:

CodePushDeploymentKey
$(CODEPUSH_KEY)
CodePushServerURL
https://api.revopush.org

sdk version

"@revopush/react-native-code-push": "^1.4.0",
react native version 0.79.2

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