0x-api icon indicating copy to clipboard operation
0x-api copied to clipboard

yarn start/dev Error: API Key isn't UUID compliant

Open surajit2608 opened this issue 3 years ago • 2 comments

Error

/var/www/0x-api/src/config.ts:727 apiKeys.forEach((apiKey) => { ^ Error: API Key isn't UUID compliant at /var/www/0x-api/src/config.ts:730:27 at Array.forEach () at assertEnvVarType (/var/www/0x-api/src/config.ts:727:21) at Object. (/var/www/0x-api/src/config.ts:314:11) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Module.m._compile (/var/www/0x-api/node_modules/ts-node/src/index.ts:1056:23) at Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Object.require.extensions. [as .ts] (/var/www/0x-api/node_modules/ts-node/src/index.ts:1059:12) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:93:18) at Object. (/var/www/0x-api/src/app.ts:18:1) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Module.m._compile (/var/www/0x-api/node_modules/ts-node/src/index.ts:1056:23) at Module._extensions..js (internal/modules/cjs/loader.js:1114:10) [nodemon] app crashed - waiting for file changes before starting...

Operation System

Ubuntu 20.04

Steps to Reproduce the Bug

Run the following commands after cloning the repo: yarn yarn dev/start

surajit2608 avatar Nov 12 '21 09:11 surajit2608

We just submitted a PR that fixes this issue here: https://github.com/0xProject/0x-api/pull/835. The other workaround is to create a uuid and set it to SRA_PERSISTENT_ORDER_POSTING_WHITELISTED_API_KEYS.

crypto-date avatar Feb 17 '22 06:02 crypto-date

How do we create a UUID?

samisbakedham avatar Feb 17 '22 06:02 samisbakedham