You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the following error, even after doing the "yarn compile", "REGION is MISSING"
Here is the environment and the command running with the error.
root@ip-172-31-18-233:/MQTT-bridge-mosquitto# uname -a
Linux ip-172-31-18-233 6.8.0-1008-aws #8-Ubuntu SMP Sat Apr 20 00:46:25 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@ip-172-31-18-233:/MQTT-bridge-mosquitto# npm -v
9.2.0
root@ip-172-31-18-233:/MQTT-bridge-mosquitto# yarn -v
1.22.22
root@ip-172-31-18-233:/MQTT-bridge-mosquitto# node -v
v18.19.1
root@ip-172-31-18-233:/MQTT-bridge-mosquitto# pwd
/root/MQTT-bridge-mosquitto
root@ip-172-31-18-233:/MQTT-bridge-mosquitto# ls -l
total 100
-rw-r--r-- 1 root root 1522 Jun 1 00:09 LICENSE
-rw-r--r-- 1 root root 1552 Jun 1 00:09 README.md
-rw-r--r-- 1 root root 33 Jun 1 00:09 cdk.json
drwxr-xr-x 3 root root 4096 Jun 1 00:09 container
drwxr-xr-x 3 root root 4096 Jun 1 02:15 dist
drwxr-xr-x 3 root root 4096 Jun 1 00:09 grafana-demo
drwxr-xr-x 65 root root 4096 Jun 1 00:10 node_modules
-rw-r--r-- 1 root root 929 Jun 1 00:09 package.json
drwxr-xr-x 3 root root 4096 Jun 1 00:09 src
-rw-r--r-- 1 root root 567 Jun 1 00:09 tsconfig.json
-rw-r--r-- 1 root root 57977 Jun 1 00:09 yarn.lock
root@ip-172-31-18-233:~/MQTT-bridge-mosquitto# yarn bridge-init 4a2f5948878801236a6844fc8c6ec5579fb9a7a4
yarn run v1.22.22
$ node dist/scripts/init.js 4a2f5948878801236a6844fc8c6ec5579fb9a7a4
init.js
Initialize context
Positionals:
apiKey [string]
Options:
--version Show version number [boolean]
-h Show help [boolean]
-e, --endpoint [string] [default: "https://api.nrfcloud.com"]
--reset [boolean] [default: false]
Error: Region is missing
at default (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js:10:15)
at /root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js:6:83
at /root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/property-provider/dist-cjs/chain.js:12:39
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async coalesceProvider (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js:14:24)
at async /root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js:26:28
at async useFipsEndpoint (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js:21:74)
at async resolveParams (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js:29:40)
at async getEndpointFromInstructions (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js:7:28)
at async /root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/middleware-endpoint/dist-cjs/endpointMiddleware.js:8:26
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
root@ip-172-31-18-233:~/MQTT-bridge-mosquitto#
The text was updated successfully, but these errors were encountered:
When running the yarn bridge-init
Getting the following error, even after doing the "yarn compile", "REGION is MISSING"
Here is the environment and the command running with the error.
root@ip-172-31-18-233:
/MQTT-bridge-mosquitto# uname -a/MQTT-bridge-mosquitto# npm -vLinux ip-172-31-18-233 6.8.0-1008-aws #8-Ubuntu SMP Sat Apr 20 00:46:25 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@ip-172-31-18-233:
9.2.0
root@ip-172-31-18-233:
/MQTT-bridge-mosquitto# yarn -v/MQTT-bridge-mosquitto# node -v1.22.22
root@ip-172-31-18-233:
v18.19.1
root@ip-172-31-18-233:
/MQTT-bridge-mosquitto# pwd/MQTT-bridge-mosquitto# ls -l/root/MQTT-bridge-mosquitto
root@ip-172-31-18-233:
total 100
-rw-r--r-- 1 root root 1522 Jun 1 00:09 LICENSE
-rw-r--r-- 1 root root 1552 Jun 1 00:09 README.md
-rw-r--r-- 1 root root 33 Jun 1 00:09 cdk.json
drwxr-xr-x 3 root root 4096 Jun 1 00:09 container
drwxr-xr-x 3 root root 4096 Jun 1 02:15 dist
drwxr-xr-x 3 root root 4096 Jun 1 00:09 grafana-demo
drwxr-xr-x 65 root root 4096 Jun 1 00:10 node_modules
-rw-r--r-- 1 root root 929 Jun 1 00:09 package.json
drwxr-xr-x 3 root root 4096 Jun 1 00:09 src
-rw-r--r-- 1 root root 567 Jun 1 00:09 tsconfig.json
-rw-r--r-- 1 root root 57977 Jun 1 00:09 yarn.lock
root@ip-172-31-18-233:~/MQTT-bridge-mosquitto# yarn bridge-init 4a2f5948878801236a6844fc8c6ec5579fb9a7a4
yarn run v1.22.22
$ node dist/scripts/init.js 4a2f5948878801236a6844fc8c6ec5579fb9a7a4
init.js
Initialize context
Positionals:
apiKey [string]
Options:
--version Show version number [boolean]
-h Show help [boolean]
-e, --endpoint [string] [default: "https://api.nrfcloud.com"]
--reset [boolean] [default: false]
Error: Region is missing
at default (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js:10:15)
at /root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js:6:83
at /root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/property-provider/dist-cjs/chain.js:12:39
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async coalesceProvider (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js:14:24)
at async /root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js:26:28
at async useFipsEndpoint (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js:21:74)
at async resolveParams (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js:29:40)
at async getEndpointFromInstructions (/root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js:7:28)
at async /root/MQTT-bridge-mosquitto/node_modules/@aws-sdk/middleware-endpoint/dist-cjs/endpointMiddleware.js:8:26
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
root@ip-172-31-18-233:~/MQTT-bridge-mosquitto#
The text was updated successfully, but these errors were encountered: