Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

path.extname produce type error : undefined is not a function time to time #25539

Closed
solshark opened this issue Jun 18, 2015 · 2 comments
Closed

Comments

@solshark
Copy link

Hi,

I have very weird behavior. Time to time function path.extname throws error TypeError: undefined is not a function.

It happens randomly. It might happened if filename contains '[' or ']' or '.' or anything else - but cannot reproduce constantly.

filename += path.extname req.query.s3_object_name

I cannot deliver example (can't make something which will reproduce it), but it happens on my server time to time for few weeks for now. Restarting process allow it to work for some time, before next strange filename will be used.

Same file which caused error after restart will be processed ok.

Any idea?

@dnakamura
Copy link

What platform and version are you running. Also if you could post the stacktrace that would be usefull

@jasnell
Copy link
Member

jasnell commented Jun 24, 2015

A simple test case that at least reproduces the problem part of the time would be helpful also. I know that can be difficult to provide at times, but without it, it's very difficult to test and debug.

@Trott Trott closed this as completed Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants