Skip to content

Running the program #57

Closed Answered by devraj
Gooner12 asked this question in Q&A
Jul 29, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Issue:

Failed to run the program. I tried running the program with,

poetry run gala alarm list

The error I got:

AttributeError: 'NoneType' object has no attribute 'href'

Logging the get_config() returned this object:

EndpointConfig(endpoint=None, dto_list=<class 'gallagher.dto.response.alarm.AlarmSummaryResponse'>, dto_retrieve=<class  
'gallagher.dto.detail.alarm.AlarmDetail'>, top=10, sort='id', fields=(), search=())

I identified that the issue in the code is from cls.__config__.endpoint.href. Since, endpoint is None, the error is shown.

I am pretty certain it is due to the missing API Key. In saying that the completed utility should raise proper error messages for the end user. If yo…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Gooner12
Comment options

@devraj
Comment options

Answer selected by Gooner12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants