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

'node_modules/@fastify/busboy/lib/utils.js': TypeError: Value is not an object: undefined #100

Closed
2 tasks done
Tom3652 opened this issue Sep 24, 2022 · 6 comments
Closed
2 tasks done

Comments

@Tom3652
Copy link

Tom3652 commented Sep 24, 2022

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

See in firebase-admin SDK (messaging)

Plugin version

See in firebase-admin SDK (messaging)

Node.js version

MongoDB Atlas Trigger : JS SDK Version: 3.18.0

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

No idea sorry

Description

I don't know NodeJS at all sorry, but i am using the firebase_admin package that is actually using your package as a dependency.

I have no clue about it but since they don't answer to my issue there.
I am making an issue here so perhaps you could tell me what is happening :

'http' module: FunctionError: failed to execute source for 'node_modules/@fastify/busboy/lib/main.js': FunctionError: failed to execute source for 'node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js': FunctionError: failed to execute source for 'node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js': FunctionError: failed to execute source for 'node_modules/@fastify/busboy/lib/utils.js': TypeError: Value is not an object: undefined
	at node_modules/@fastify/busboy/lib/utils.js:23:27(322)

	at require (native)
	at node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js:15:24(29)

	at require (native)
	at node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js:19:28(39)

	at require (native)
	at node_modules/@fastify/busboy/lib/main.js:28:21(44)

I must specify that this error is not impacting my service, but i am having multiple errors in my Atlas trigger because of this.

Steps to Reproduce

You will find all the detail in the mentioned issue.

Expected Behavior

This error could be more explicit (with the wrong value logged for example).

I would especially really appreciate you tell me what can be wrong here or answer directly in the Firebase repo with what's wrong in their code please.

@kibertoad
Copy link
Member

I'll take a look, thanks!

@Eomm
Copy link
Member

Eomm commented Sep 24, 2022

Not sure if it is related, but when I see dicer, I recall it:
https://security.snyk.io/package/npm/dicer

@kibertoad
Copy link
Member

@Eomm It used to be the case, but @Uzlopak fixed security vulnerabilities in our fork.

@lahirumaramba
Copy link
Contributor

@kibertoad IIUC it looks like HeaderParser uses getLimit() from libs/utils... do you think we can movegetLimit out of utils or move to Dicer? Happy to submit a PR if this makes sense to you. Thanks!

function getLimit (limits, name, defaultLimit) {

@Tom3652
Copy link
Author

Tom3652 commented Jan 6, 2023

Hello guys,
I am sorry to ask but is that meaning the issue is solved ? I can check it ?
Thanks for your work

@Uzlopak
Copy link
Contributor

Uzlopak commented Jan 6, 2023

Yes, we released 1.2.0 today. Please Check

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

Successfully merging a pull request may close this issue.

5 participants