Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File \"/Users/erp/Library/Python/2.7/lib/python/site-packages/werkzeug/routing.py\", line 1563, in match raise NotFound() #91730

Open
Shaagaa opened this issue May 19, 2022 · 1 comment

Comments

@Shaagaa
Copy link

Shaagaa commented May 19, 2022

odoo 10 http post request error
File "/Users/erp/Project/odoo/odoo/http.py", line 642, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/Users/erp/Project/odoo/odoo/http.py", line 1471, in _dispatch_nodb
func, arguments = self.nodb_routing_map.bind_to_environ(request.httprequest.environ).match()
File "/Users/erp/Library/Python/2.7/lib/python/site-packages/werkzeug/routing.py", line 1563, in match
raise NotFound()
NotFound: 404: Not Found
", "exception_type": "internal_error", "message": "404: Not Found", "name": "werkzeug.exceptions.NotFound"}, "http_status": 404, "message": "404: Not Found"}

react-native 0.63 ios get data to post request eror
There is no problem with android

odoo print "====", request.httprequest.environ

{'wsgi.multiprocess': False, 'HTTP_COOKIE': 'session_id=0b67df413b32869307a7dcccfd092ecfcda7c0bc,s;', 'SERVER_SOFTWARE': 'Werkzeug/0.11.11', 'SCRIPT_NAME': '', 'REQUEST_METHOD': 'POST', 'PATH_INFO': '/web/dataset/call_kw', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'werkzeug.server.shutdown': <function shutdown_server at 0x11ccfa588>, 'CONTENT_LENGTH': '140', 'HTTP_USER_AGENT': 'GatsuurtDispatch/1 CFNetwork/1331.0.7 Darwin/21.3.0', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': '0.0.0.0', 'REMOTE_PORT': 54602, 'wsgi.url_scheme': 'http', 'SERVER_PORT': '8099', 'werkzeug.request': <Request 'http://192.168.0.110:8099/web/dataset/call_kw' [POST]>, 'wsgi.input': <socket._fileobject object at 0x11efb0c48>, 'HTTP_HOST': '192.168.0.110:8099', 'wsgi.multithread': True, 'HTTP_ACCEPT': 'application/json', 'wsgi.version': (1, 0), 'wsgi.run_once': False, 'wsgi.errors': <open file '', mode 'w' at 0x1009fc270>, 'REMOTE_ADDR': '192.168.0.110', 'HTTP_ACCEPT_LANGUAGE': 'mn,en-US;q=0.9,en;q=0.8', 'CONTENT_TYPE': 'application/json', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate'}

I saw that HTTP_USER_AGENT is different from other requests

MY REACT NATIVE PROJECT NAME IS GatsuurtDispatch
How to fix it

@Shaagaa
Copy link
Author

Shaagaa commented May 19, 2022

used react-native-odoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant