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

Attribute Error: None Type Get() #98

Closed
mbaleey opened this issue Aug 23, 2024 · 3 comments
Closed

Attribute Error: None Type Get() #98

mbaleey opened this issue Aug 23, 2024 · 3 comments

Comments

@mbaleey
Copy link

mbaleey commented Aug 23, 2024

Hello,

Getting this error right after status 200 against self.request('/system/info')..

Attribute Error: None Type Get()

Seeing references to this line here as seen in screenshot.

execution_mode = system_info['system'].get('executions', {}).get('executionMode')

I have a feeling this might be a quick fix on my part and something simple I'm overlooking?

Any ideas why I keep getting hit on this error? Using api v40 and exporter 2.71 rev.
20240822_170011

Thank you,[

@phsmith
Copy link
Owner

phsmith commented Aug 23, 2024

Hi there,

I suspect it's because the user or token you're using doesn't have permission to read system attributes.
Could you take a look at the following instructions and see if that helps?
https://github.com/phsmith/rundeck_exporter?tab=readme-ov-file#api-authentication

@mbaleey
Copy link
Author

mbaleey commented Aug 23, 2024

Hi there,

I suspect it's because the user or token you're using doesn't have permission to read system attributes. Could you take a look at the following instructions and see if that helps? https://github.com/phsmith/rundeck_exporter?tab=readme-ov-file#api-authentication

Great, thank you will do!

phsmith added a commit that referenced this issue Aug 31, 2024
* chore: update docker-compose example

* fix(#98): move metrics variable for correct permission issue message.

* feat(#97): add rundeck_execution_mode_<active/passive> metrics
@phsmith
Copy link
Owner

phsmith commented Aug 31, 2024

Hey @mbaleey, I just released version 2.8.0 of the exporter with a fix to properly throw the permission issue message.
I'm closing this issue, but feel free to open a new one if you're still having problems.

@phsmith phsmith closed this as completed Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants