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
As of Werkzeug 2.0 / Flask 2.1, the parsed data of request.user_agent has been deprecated (see here for discussion). As such, calls such as request.user_agent.browser and request.user_agent.platform will no longer work and will return None. This issue was recently pointed out by @YJ-Ren.
The suggested solution is to simply return the entire user agent string (i.e., request.user_agent.string) and have NivTurk users parse that information, when necessary, using external resources such as browser-info or ua-parser.
The text was updated successfully, but these errors were encountered:
As of Werkzeug 2.0 / Flask 2.1, the parsed data of
request.user_agent
has been deprecated (see here for discussion). As such, calls such asrequest.user_agent.browser
andrequest.user_agent.platform
will no longer work and will returnNone
. This issue was recently pointed out by @YJ-Ren.The suggested solution is to simply return the entire user agent string (i.e.,
request.user_agent.string
) and have NivTurk users parse that information, when necessary, using external resources such as browser-info or ua-parser.The text was updated successfully, but these errors were encountered: