exponea / flask-redis-sentinel Goto Github PK
View Code? Open in Web Editor NEWRedis-Sentinel integration for Flask
License: Apache License 2.0
Redis-Sentinel integration for Flask
License: Apache License 2.0
Hi I started to get those errors within an existing small application being deployed to Cloud Foundry. The app was not changed and I wonder what might cause the problem. Any idea?
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR Traceback (most recent call last):
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/runpy.py", line 194, in _run_module_as_main
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR return _run_code(code, main_globals, None,
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/runpy.py", line 87, in _run_code
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR exec(code, run_globals)
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/flask/__main__.py", line 3, in <module>
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR main()
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/flask/cli.py", line 1047, in main
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR cli.main()
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/click/core.py", line 1055, in main
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR rv = self.invoke(ctx)
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR return _process_result(sub_ctx.command.invoke(sub_ctx))
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR return ctx.invoke(self.callback, **ctx.params)
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/click/core.py", line 760, in invoke
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR return __callback(*args, **kwargs)
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/click/decorators.py", line 84, in new_func
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR return ctx.invoke(f, obj, *args, **kwargs)
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/click/core.py", line 760, in invoke
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR return __callback(*args, **kwargs)
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/flask/cli.py", line 911, in run_command
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR raise e from None
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/flask/cli.py", line 897, in run_command
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR app = info.load_app()
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/flask/cli.py", line 308, in load_app
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR app = locate_app(import_name, name)
2022-12-22T13:36:10.09+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/flask/cli.py", line 218, in locate_app
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR __import__(module_name)
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/app/app.py", line 25, in <module>
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR redis_sentinel.init_app(app)
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/flask_redis_sentinel.py", line 133, in init_app
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR client_options = self._config_from_variables(config, client_class)
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/site-packages/flask_redis_sentinel.py", line 158, in _config_from_variables
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR args = inspect.getargspec(the_class.__init__).args
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR File "/home/vcap/deps/0/python/lib/python3.8/inspect.py", line 1095, in getargspec
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR raise ValueError("Function has keyword-only parameters or annotations"
2022-12-22T13:36:10.10+0200 [APP/PROC/WEB/0] ERR ValueError: Function has keyword-only parameters or annotations, use inspect.signature() API which can support them
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.