onomondo / onomondo-softsim-cli

SoftSIM cli tool to aid in provisioning of SoftSIM in manufacturing
https://onomondo.com
7 stars 0 forks source link

Unable to retrieve profiles with softsim api key #56

Closed bkr-isonoe closed 1 hour ago

bkr-isonoe commented 1 week ago

Hello,

I wanted to try softsim example on my nrf9161 development kit. I have been following instructions regarding generating api key from Onomondo platform and I have successfully done so. When trying to fetch profiles using softsim cli tool, I get error that no more profiles are available. Could someone please help me and tell me if I maybe configured something wrongly? Thanks in advance.

Here are the logs: softsim -v fetch --api-key -n 5 2024-10-07T11:45:17 [INFO] - Fetching 5 profiles from https://api.onomondo.com/sims/profiles 2024-10-07T11:45:17 [DEBUG] - Storing profiles at profiles/profiles.json 2024-10-07T11:45:17 [DEBUG] - Fetching 5 profiles 2024-10-07T11:45:17 [DEBUG] - starting new connection: https://api.onomondo.com/ 2024-10-07T11:45:18 [ERROR] - Failed to retrive profiles - No more profiles are available 2024-10-07T11:45:18 [INFO] - Removing file: profiles\profiles.json 2024-10-07T11:45:18 [INFO] - Exiting with error

ruswerner commented 1 week ago

I get the same error. I've read (twice) and followed all the instructions. Can't figure out how to get this to work.

$ softsim -vvv fetch --api-key <REDACTED> -n 5
2024-10-08T12:16:04 [TRACE] - Args { verbosity: 3, cmd: Fetch { api_key: "onok_0e82287c.7A9+2tbpYjBbuRTFU6jOwsC0oJIIxh4Jx6e5f/JSSflIp6WFlb6vpahF", num_of_profiles: 5, output: "profiles", url: "https://api.onomondo.com/sims/profiles" } }
2024-10-08T12:16:04 [INFO] - Fetching 5 profiles from https://api.onomondo.com/sims/profiles
2024-10-08T12:16:04 [DEBUG] - Storing profiles at profiles/profiles.json
2024-10-08T12:16:04 [DEBUG] - Fetching 5 profiles
2024-10-08T12:16:04 [DEBUG] - starting new connection: https://api.onomondo.com/
2024-10-08T12:16:06 [TRACE] - Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("api.onomondo.com")), port: None, path: "/sims/profiles", query: Some("version=0.3.2"), fragment: None }, status: 404, headers: {"date": "Mon, 07 Oct 2024 23:15:27 GMT", "content-type": "application/json; charset=utf-8", "content-length": "39", "connection": "close", "set-cookie": "<REDACTED>; Expires=Mon, 14 Oct 2024 23:15:27 GMT; Path=/", "set-cookie": "<REDACTED>; Expires=Mon, 14 Oct 2024 23:15:27 GMT; Path=/; SameSite=None; Secure", "x-ratelimit-limit": "600", "x-ratelimit-remaining": "599", "x-ratelimit-reset": "1728342988", "vary": "Origin", "etag": "W/\"27-kF7zWMQJLSYxCqfLmsz6nFfM0QM\"", "strict-transport-security": "max-age=31536000; includeSubDomains"} }
2024-10-08T12:16:06 [ERROR] - Failed to retrive profiles - No more profiles are available
2024-10-08T12:16:06 [INFO] - Removing file: profiles/profiles.json
2024-10-08T12:16:06 [INFO] - Exiting with error
2024-10-08T12:16:06 [TRACE] - "No more profiles are available"
bkr-isonoe commented 1 hour ago

Support answered on Onomondo platform, they added 5 profiles for softsims on my account and then I was able to pull it.