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
Describe the bug: By using the flask agent and opting to build the application on the fly an error occurs AttributeError: 'NoneType' object has no attribute 'config'.
Environment (please complete the following information)
OS: Linux
Python version: 3.8.5
Framework and version: Flask 1.1.2
APM Server version: NA
Agent version: NA
Additional context
This error does not happen with version 6.0.0. This bug seems to be incorporated into the project in the PR-1043 with the removal from the if statement L128 - L129 in the init_app() method that would initiate a possible NoneType client. Based on the efforts of the PR-1043 to make the client global, it would ideally be initiated in the constructor from the class ElasticAPM. That would only apply if there's an existent app which does not happen if the user opted to build the application on the fly.
The text was updated successfully, but these errors were encountered:
* Make Client object globally available
* Remove global client object on Client.close()
* Fix django's get_client to use elasticapm.get_client
* Clean up more client creation
* CHANGELOG
Describe the bug: By using the flask agent and opting to build the application on the fly an error occurs AttributeError: 'NoneType' object has no attribute 'config'.
To Reproduce
Environment (please complete the following information)
Additional context
This error does not happen with version 6.0.0. This bug seems to be incorporated into the project in the PR-1043 with the removal from the if statement L128 - L129 in the
init_app()
method that would initiate a possible NoneType client. Based on the efforts of the PR-1043 to make the client global, it would ideally be initiated in the constructor from the class ElasticAPM. That would only apply if there's an existent app which does not happen if the user opted to build the application on the fly.The text was updated successfully, but these errors were encountered: