TypeError: partialRoute.split is not a function
See original GitHub issueIs there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
SDK Version
7.8.0
Framework Version
express 4.18.1, node 16.15.0
Link to Sentry event
No response
Steps to Reproduce
- Update @sentry/tracing to 7.8.0.
- Start the app
- Wait for incoming request
Expected Result
Requests to the server are processes properly without any errors.
Actual Result
Each request fails with the following error (probably related to #5450):
TypeError: partialRoute.split is not a function
at Function.process_params (./main.js:2:1855298)
at next (./main.js:2:2554914)
at Function.handle (./main.js:2:2553813)
at router (./main.js:2:2552432)
at ./main.js:2:1853557
at Layer.handle [as handle_request] (./main.js:2:2560503)
at trim_prefix (./main.js:2:2555773)
at ./main.js:2:2555055
at Function.process_params (./main.js:2:2555954)
at Function.process_params (./main.js:2:1856043)
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
partialRoute.split is not a function when using array as path ...
have a route declared with an array as path parameter route.get(['path', 'other_path', /regex_path/], (req, res, next) => {...
Read more >[Solved] TypeError: split is not a function - ItsJavaScript
The TypeError: split is not a function occurs if we call a split() method on the value that is not of a type...
Read more >TypeError: split is not a function in JavaScript - Java2Blog
TypeError : .split is not a function occurs when we call split() function on object which is not an string. split() function can...
Read more >TypeError: path.split is not a function getting Error?
TypeError : path.split is not a function?. I'm using react hook form. I tried to debug but I'm getting the same errors many...
Read more >How To Fix Split is Not a Function Error in JavaScript - Isotropic
split is not a function error. The Problem. First and foremost it is important to understand the usage of the split() method. It...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah I see, Express is really not making this easy 😅
If you have the time, please open a separate issue. We’ll release the fix for this one today and I’ll take a look at the arrays tomorrow. Thanks @albanv
@Lms24 Ups, sorry! I’ve updated the description, obviously it crashes on the request.