question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: partialRoute.split is not a function

See original GitHub issue

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/tracing

SDK Version

7.8.0

Framework Version

express 4.18.1, node 16.15.0

Link to Sentry event

No response

Steps to Reproduce

  1. Update @sentry/tracing to 7.8.0.
  2. Start the app
  3. 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:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Lms24commented, Jul 28, 2022

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

1reaction
Michsior14commented, Jul 28, 2022

@Lms24 Ups, sorry! I’ve updated the description, obviously it crashes on the request.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found