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
Howdy! Decided to discover other libraries today, so I took Bottle.
I liked it. 'Hit Ctrl-C to quit' was fun. Like 'Smash Ctrl-C to quit".
However, I noticed probably a bug. I used the simplest snippet:
from bottle import Bottle, run
app = Bottle()
@app.route(path='/')
@app.route(path='/<name>', method='GET')
def main(name=None):
if name:
return {'message': f"hello {name}"}
else:
return {'message': f"hello world"}
if __name__ == '__main__':
run(app, host='127.0.0.1', port=5000, debug=True)
So, for this code during the runtime with turned on debug mode I change {'message': f"hello world"} to {'message': f"hello no world"} and the response is still {'message': "hello world"}. Whereas the logs are 127.0.0.1 - - [14/Feb/2024 14:25:58] "GET / HTTP/1.1" 200 26
Done list:
Restart PyCharm (I use PyCharm Community Edition 2023.1.4)
Reinstall the bottle
Switch the venv to global
Force refresh the page with "Shift + F5"
The issue still persists.
Hope this information will be helpful for you. Good luck.
Howdy! Decided to discover other libraries today, so I took Bottle.
I liked it. 'Hit Ctrl-C to quit' was fun. Like 'Smash Ctrl-C to quit".
However, I noticed probably a bug. I used the simplest snippet:
So, for this code during the runtime with turned on debug mode I change
{'message': f"hello world"}
to{'message': f"hello no world"}
and the response is still{'message': "hello world"}
. Whereas the logs are127.0.0.1 - - [14/Feb/2024 14:25:58] "GET / HTTP/1.1" 200 26
Done list:
bottle
The issue still persists.
Hope this information will be helpful for you. Good luck.
UPD:
Just tested with
requests
and the issue persists.The text was updated successfully, but these errors were encountered: