Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't seem to get it to work #1

Open
dougstarfish opened this issue May 3, 2022 · 1 comment
Open

can't seem to get it to work #1

dougstarfish opened this issue May 3, 2022 · 1 comment
Labels
question Further information is requested

Comments

@dougstarfish
Copy link

brand new api key with all permissions and the application id is definitely correct, but I keep getting permission denied. Any further thoughts for troubleshooting? I even tried another new api key.

ttn_storage_api.sensor_pull_storage('pi-acres-chickens', key, "1h")
[{'error': {'message': 'error:pkg/auth/rights:no_application_rights (no rights for application appname@ttn)', 'grpc_code': 7, 'details': [{'correlation_id': '4078aa3e3e85493394842a0ae1a63b22', 'code': 7, '@type': 'type.googleapis.com/ttn.lorawan.v3.ErrorDetails', 'attributes': {'uid': 'appname@ttn'}, 'message_format': 'no rights for application {uid}', 'namespace': 'pkg/auth/rights', 'name': 'no_application_rights'}], 'http_status': 'Forbidden', 'http_code': 403}}]

I can't find any notes about setting or using uid, so I'm not sure if that's related or not.

@terrillmoore terrillmoore added the question Further information is requested label Sep 21, 2022
@terrillmoore
Copy link
Owner

Sorry you're having problems. It works for me. I generated an API key in the console (with all rights), saved the key secret when prompted, and got information. The access key parameter must be set to this secret, not to the "name" of the key that shows up later. Confirmed just now while fixing #2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants