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

yarn dev wrong. Error: API Key isn't UUID compliant

Open yanyanho opened this issue 3 years ago • 7 comments

Expected Behavior

Current Behavior

/Users/ruanyang/works/defi/0x/0x-api/src/config.ts:623 apiKeys.forEach((apiKey) => { ^ Error: API Key isn't UUID compliant at /Users/ruanyang/works/defi/0x/0x-api/src/config.ts:626:27 at Array.forEach () at assertEnvVarType (/Users/ruanyang/works/defi/0x/0x-api/src/config.ts:623:21) at Object. (/Users/ruanyang/works/defi/0x/0x-api/src/config.ts:325:11)

Steps to Reproduce (for bugs)

1.
2.
3.

Context

Your Environment

mac

yanyanho avatar Apr 30 '21 07:04 yanyanho

same issue here

Eh1Ka6 avatar Jul 23 '21 17:07 Eh1Ka6

Hey,
It seems the problem is caused by this INTEGRATOR_ACL option when the parameter is left empty. If it's a required parameter could you update the doc or leave a word here on how to configure properly this option?

Eh1Ka6 avatar Jul 26 '21 07:07 Eh1Ka6

Is there any workaround ?

GauthamGoli avatar Aug 15 '21 11:08 GauthamGoli

A workaround is to comment out line 707 in src/config.ts

devnullada avatar Sep 09 '21 23:09 devnullada

@Eh1Ka6 @GauthamGoli @yanyanho @devnullada @dekz I am facing same issue what is the solution for this issue

$ ./node_modules/.bin/typeorm migration:run --config ./lib/src/ormconfig.js Error during migration run: Error: API Key isn't UUID compliant at /home/shaibiii/0x/0x-api/src/config.ts:726:27 at Array.forEach () at assertEnvVarType (/home/shaibiii/0x/0x-api/src/config.ts:723:21) at Object. (/home/shaibiii/0x/0x-api/src/config.ts:314:11) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) 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. (/home/shaibiii/0x/0x-api/src/ormconfig.ts:3:1) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) 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) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

saad3074 avatar Nov 04 '21 13:11 saad3074

We just submitted a pr that fixes this issue here: https://github.com/0xProject/0x-api/pull/835

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

We just submitted a pr that fixes this issue here: #835

Thank you!

samisbakedham avatar Feb 17 '22 06:02 samisbakedham