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

API Failure #1926

Closed
bracarey opened this issue May 11, 2024 · 5 comments · Fixed by #1941
Closed

API Failure #1926

bracarey opened this issue May 11, 2024 · 5 comments · Fixed by #1941
Labels
❔ question Further information is requested

Comments

@bracarey
Copy link

bracarey commented May 11, 2024

What version of Node.js are you using?

20.13.1

What operating system are you using?

Windows 10

What version of SnailyCAD are you currently using?

1.79.1

Describe the Bug

API failure to start with a TypeError: request.headers.split is not a function

Expected Behavior

API should launch with no errors

To Reproduce

image1
Line 248 is the culprit. the above is the line currently.
the file path to this is \snaily-cadv4\node_modules.pnpm@sentry+node@7.81.0\node_modules@sentry\node\cjs\integrations\undici\index.js
the fix I found is below. Taking out the ".split('\r\n')" fixed the issue for me.
image2

@shivkun
Copy link
Contributor

shivkun commented May 11, 2024

Hi there,

SnailyCAD only supports NodeJS v18.x, as stated in the docs. Please make sure you're using the appropriate version.

Source: https://docs.snailycad.org/docs/installations/methods/standalone

@sl1ki0
Copy link

sl1ki0 commented May 11, 2024

Hi there,

SnailyCAD only supports NodeJS v18.x, as stated in the docs. Please make sure you're using the appropriate version.

Source: https://docs.snailycad.org/docs/installations/methods/standalone

It looks like Undici problem which fixed in newer versions. Check out Github issue >> getsentry/sentry-javascript#10936 . But, to be honest I never had that type of issue using SnailyCAD, so most likely your comment is fair

@burnoutprojects
Copy link

I'm running the SnailyCAD with version 20 and I have not any issue. This issue is related to Sentry package not on SnailyCAD itself. I'm going to update and test the newest version of the package and I create a PR if working.

@Infiniti-Development
Copy link
Contributor

Can you please send a screenshot or log file instead of the code it self.
We can't find an error in a code only in a log.
@bracarey

@Infiniti-Development Infiniti-Development self-assigned this May 31, 2024
@Infiniti-Development Infiniti-Development added the ❔ question Further information is requested label May 31, 2024
@Infiniti-Development Infiniti-Development removed their assignment Jun 3, 2024
@sl1ki0
Copy link

sl1ki0 commented Jun 3, 2024

Can you please send a screenshot or log file instead of the code it self. We can't find an error in a code only in a log. @bracarey

What's not really a SnailyCAD code problem I think, that is the problem in Node modules, exactly in Undici. Maybe switching versions can help

This was referenced Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔ question Further information is requested
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants