Deepnest icon indicating copy to clipboard operation
Deepnest copied to clipboard

Errorcode 522

Open Tigger86 opened this issue 9 months ago • 22 comments

I receive error code 522 when trying to upload a DXF file. What could be the cause? I have already reinstalled the software, but unfortunately, it didn’t help.

Tigger86 avatar Mar 22 '25 21:03 Tigger86

I reproduce it too.

mmm... I had not used deepnest since maybe 2 years. I installed it again this morning (1.0.5) and I have had those "error code 522" in two situations

  1. import DXF (impossible to load the dfx file, I had to use svg format that makes me uneasy)
  2. export DXF (once the nesting is computed) (impossible to export either, I had to export to SVG and that makes me very uneasy for CNC machining...)

chatgpt also suggest to use a community fork that was triggered https://github.com/deepnest-next/.github/blob/main/profile/why-we-forked-into-a-new-organisation.md https://www.reddit.com/r/lasercutting/comments/1gz3h76/whats_happened_to_deepnestio/

i'm struggling to understand what should I do here? and i'm worried for malicious code... :/

anyone managed to get DXF thing running again?

alexisdal avatar Mar 23 '25 09:03 alexisdal

apparently the source code replies on a internal convertion webservice hosted on

http://convert.deepnest.io

source: https://github.com/Jack000/Deepnest/blob/2fb10513a30681971dcc991c528fa0738a2c0c76/main/index.html#L88

however, this internal website replies with a 522 HTTP error code (some sort of a timeout). I suspect the thing has been down for a long time ?

Image

when I look at the apparently community driven alternative https://github.com/deepnest-next/deepnest/blob/49a6aafa70d222d4dc73142c430d98c1c0e27285/tests/index.spec.ts#L102 it seems to rely on a similar approach but another hostname https://converter.deepnest.app/convert and this one does seem to respond...

when I try to load the SVG-based file on cambam (I tried different file converstion service online) => but the scale in cambam is completely proken + I lost all the holes in the part. it's a disaster

smells like bye-bye deepest.io 😭

alexisdal avatar Mar 23 '25 12:03 alexisdal

@Dexus Can you take a look here?

bosd avatar Mar 24 '25 09:03 bosd

You can all switch to www.deepnest.net / https://github.com/deepnest-next/deepnest.

Our ref: https://github.com/deepnest-next/deepnest/issues/71

I already have a working converter, not much tested yet, but created for my own files and needs and found it good so far. But if you find any bugs that should be fixed, I'm here and actively working on deepnest-next.

A Hotfix, is prepared, but not yet released, because I need some more tests, before I'm fine to release it.

Best regards, Josef

Dexus avatar Mar 24 '25 09:03 Dexus

unfortunately still an error. i have changed to version 1.5.0. tried to upload a dxf file... unfortunately i get the message : could not contact file conversion server.

Tigger86 avatar Mar 24 '25 15:03 Tigger86

@Tigger86 please ready all, inclusive my link to the Issue: https://github.com/deepnest-next/deepnest/issues/71#issuecomment-2744963030 in this comment I describe how to change the current converter API from your current settings - so you dont have to reset them. Same for Presets - if you had one from our version of deepnest-next.

Dexus avatar Mar 24 '25 15:03 Dexus

maybe i'm being too stupid... but i have changed the file... but still i get the message{ "units": "mm", "scale": 72, "spacing": 0, "curveTolerance": 0.72, "rotations": 4, "threads": 4, "populationSize": 10, "mutationRate": 10, "placementType": "box", "mergeLines": true, "timeRatio": 0.5, "simplify": false, "dxfImportScale": "1", "dxfExportScale": "72", "endpointTolerance": 0.36, "conversionServer": "https://converter.deepnest.app/convert", "useSvgPreProcessor": false, "useQuantityFromFileName": false, "exportWithSheetBoundboarders": false, "exportWithSheetsSpace": false, "exportWithSheetsSpaceValue": 0.3937007874015748 }

Tigger86 avatar Mar 24 '25 19:03 Tigger86

I don't see any request to the server, so it can't be true. It works here only to change the file and restart the app.

please try on windows:

# powershell
$env:deepnest_debug=1
#start deepnest from powershell
.\deepnest-v1.5.0.exe

ot should open a developer console, please look to the " console " and also to the " network " tab, copy the console to file and create from the network tab the HAR file, and attach it here, so I can check it.

Dexus avatar Mar 24 '25 19:03 Dexus

i hope i did it right....

-1742848862059.log

Sorry, HAR files are not allowed here..that s why

WETRANSFER

Tigger86 avatar Mar 24 '25 21:03 Tigger86

when i import an svg file it works

Tigger86 avatar Mar 24 '25 21:03 Tigger86

Thx will check it tomorrow

Dexus avatar Mar 24 '25 21:03 Dexus

Thanks, for letting me know that it was not working, my tests run against a different config as the prod. Thats why it did not work in prod. Now it should fixed, with the change.

Dexus avatar Mar 25 '25 07:03 Dexus

you're welcome.. it could have been my mistake

I'll test it in the evening. thanks

Tigger86 avatar Mar 25 '25 10:03 Tigger86

sorry i found another problem... I have updated to v.1.5.1... what I find positive is that you can now upload several dxf files at once.

the scale of the dxf is unfortunately not correct. so if i upload a dxf that is 100x100 mm, then it is 2540mm in deepnest... and it is similar when i export it as a dxf.... . if i export it as svg. then it works.

Tigger86 avatar Mar 25 '25 15:03 Tigger86

Can you please provide a test file for me? And Share the current used settings? On windows %APPDATA%/deepnest/ the settings.json

Dexus avatar Mar 25 '25 15:03 Dexus

of course. dxf.file,settings.json

Tigger86 avatar Mar 25 '25 17:03 Tigger86

@Tigger86 thanks, I have just review you settings, I have changed the default unit to inch for the converter and when I set the import dxd units to points, I get 100mm by 96dpi, also If i set the export to inch at 96dpi i get also 100mm.

It would be so nice, if the Units would match..., I will check this. Please open an issue in our repo. Then i can track it. I've no watch on this repo so, it would get lost in my notifications.

Dexus avatar Mar 25 '25 18:03 Dexus

done.

Tigger86 avatar Mar 25 '25 18:03 Tigger86

I just installed and tried using Deepnest for the first time and got this 522 error when trying to upload a dxf. I didn't get very far in using the program.

CedricE11 avatar Aug 29 '25 15:08 CedricE11

I just installed and tried using Deepnest for the first time and got this 522 error when trying to upload a dxf. I didn't get very far in using the program.

I think because its outdated since years ;) try www.deepnest.net / https://github.com/deepnest-next/deepnest/

Dexus avatar Aug 29 '25 15:08 Dexus

If it's not maintained then I'll pass. Maybe someone could add a note to the website that the program has issues, to prevent people from wasting their time.

CedricE11 avatar Aug 29 '25 16:08 CedricE11

If someone else could do it other than Jack, it would probably be that.

Dexus avatar Aug 30 '25 23:08 Dexus