Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key
 
Notifications
Clear all

Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key  

  RSS
Billy
(@billy)
Active Member
Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

Hello, I have a problem.

I have a printer connected to prusa connect, but I can't connect the prusa slicer to prusa connect.

The test returns an error: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

I copied the API key from prusaconnect. I'm using the correct apikey (Prusa Connect API key)

I tried disabling all firewalls - it didn't help.

I tried deleting the printer and adding it again (changed the APIKEY) - it didn't help.

I can see the printer normally in prusaconnect. I can see its status, print progress and I can control the printer normally.

The problem is only in the slicer vs connect app.

 

I also tried curl (I don't know if it's correct, I somehow got to it), but it comes back to me: Missing or invalid API key

curl -X GET -H "Authorization: Bearer MY_APIKEY" https://connect.prusa3d.com/api/version

Opublikowany : 27/02/2024 6:08 am
Billy
(@billy)
Active Member
Topic starter answered:
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

I've forgotten the information:

MK4 printer

slicer: version 2.7.1+win64

Opublikowany : 27/02/2024 6:21 am
Billy
(@billy)
Active Member
Topic starter answered:
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

I tried it on another computer and it worked there.

I tried reinstalling slicer -> it didn't help.

I removed the physical mk3 printer that had the settings to send to octoprint.

And then mk4 works 🙂

Obviously mixing settings from multiple printers 🙂

So, solved for me 🙂

Opublikowany : 27/02/2024 10:03 am
Tojik
(@tojik)
Member Moderator
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

Huh, you were faster than my forum checking frequency. Good job figuring it out tho.

Opublikowany : 27/02/2024 11:49 am
Martin Majewski
(@martin-majewski)
Trusted Member
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

I have the same "Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key" issue with PrusaSlicer 2.7.4 and my MK4 on firmware 5.1.3+13503.

It worked for a few months and stopped suddenly (after I updated either the firmware or PrusaSlicer, I cannot recall), but I switched to PrusaLink and worked with it.
However, now I have to start large print jobs, and it takes ages to upload even bgcode to PrusaLink.

I also have MK3 printer profiles, which are not mixed with the MK4 ones. Anyhow, that shouldn't be a breaking issue, and PrusaSlicer should discriminate correctly.

Is anyone else having that issue?

 

Cheers,
Martin

-- www.martinmajewski.net --Printables:printables.com/@MartinMajewski
Thingiverse:thingiverse.com/MartinMajewski
BlueSky:martinmajewski.bsky.social
Opublikowany : 11/04/2024 8:21 am
Martin Majewski
(@martin-majewski)
Trusted Member
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

For testing, I removed all other printers but one MK4 from PrusaSlicer, but I still get the same error.

-- www.martinmajewski.net --Printables:printables.com/@MartinMajewski
Thingiverse:thingiverse.com/MartinMajewski
BlueSky:martinmajewski.bsky.social
Opublikowany : 11/04/2024 8:30 am
Billy
(@billy)
Active Member
Topic starter answered:
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

I had to remove the MK3 connected to the octoprint, after restarting slic3r it worked as it should.

 

Opublikowany : 11/04/2024 8:59 am
Tojik
(@tojik)
Member Moderator
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

The duplicate button is in the three dot dropdown. Yes, I agree that we are missing a UX person. That is one of the things I said first year I was working here. (I have been introduced to ux and its testing at uni). I believe things will improve tho

Opublikowany : 15/04/2024 11:13 am
Kevin
(@kevin-8)
Member
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

For anyone else who finds this, I had the same issue with 2 printers but didn't want to delete them.  I found that I had PrusaLink configured for both printers but it was using "HTTP Digest" as the authentication method (which worked fine to upload directly to PrusaLink on each printer).   I changed this to 'API Key' and then changed the Host Type back to PrusaConnect and entered the PrusaConnect API key and it was able to connect to PrusaConnect correctly.  Seems like a bug where the PrusaConnect window is incorrectly using the authentication method info from the PrusaLink window, even though PrusaConnect doesn't support HTTP Digest authentication through PrusaSlicer.

Opublikowany : 02/05/2024 3:35 pm
4 ludzie polubili
GuyH
 GuyH
(@guyh)
Reputable Member
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

Thank you for this. It stopped working and I couldn't figure out why. Your post got me back up and running again. Cheers.

Posted by: @kevin-20

For anyone else who finds this, I had the same issue with 2 printers but didn't want to delete them.  I found that I had PrusaLink configured for both printers but it was using "HTTP Digest" as the authentication method (which worked fine to upload directly to PrusaLink on each printer).   I changed this to 'API Key' and then changed the Host Type back to PrusaConnect and entered the PrusaConnect API key and it was able to connect to PrusaConnect correctly.  Seems like a bug where the PrusaConnect window is incorrectly using the authentication method info from the PrusaLink window, even though PrusaConnect doesn't support HTTP Digest authentication through PrusaSlicer.

 

Opublikowany : 17/11/2024 12:08 pm
1 ludzie polubili
dotnico
(@dotnico)
Active Member
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

I had no idea why my MK4S started showing erratic behavior with PrusaConnect (crashing file transfers, not showing online). 

Turns out I had the parameter also set to PrusaLink as you described, I switched the settings to PrusaConnect API and now not only is the problem solved but file transfers to the printer are much faster. 

Thanks a lot for the help.

Posted by: @kevin-20

For anyone else who finds this, I had the same issue with 2 printers but didn't want to delete them.  I found that I had PrusaLink configured for both printers but it was using "HTTP Digest" as the authentication method (which worked fine to upload directly to PrusaLink on each printer).   I changed this to 'API Key' and then changed the Host Type back to PrusaConnect and entered the PrusaConnect API key and it was able to connect to PrusaConnect correctly.  Seems like a bug where the PrusaConnect window is incorrectly using the authentication method info from the PrusaLink window, even though PrusaConnect doesn't support HTTP Digest authentication through PrusaSlicer.

 

Opublikowany : 18/11/2024 6:34 pm
buzzripper
(@buzzripper)
Active Member
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

How/where do I change it to 'PrusaConnect API key'? On the printer? Prusa Slicer? Prusa Connect tab in slicer? Can't find it anywhere

Opublikowany : 25/12/2024 4:25 am
Aaroooooon
(@aaroooooon)
Member
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

2025 and this glitch is still present. Thanks for the help 🙂

Opublikowany : 05/02/2025 9:55 pm
Collin
(@collin)
Active Member
RE: Could not connect to Prusa Connect: HTTP 401: Missing or invalid API key

Thank you so much as well; this is in no way shape or form an intuitive fix.  This should be a banner on the prusaconnect page if they aren't going to bother fixing their apps.   It has been over a year and this is STILL an issue, i am embarrassed on Prusa's behalf.

Opublikowany : 23/05/2025 10:30 pm
jbowes
(@jbowes)
Member
RE:

Bug Recap

Observed: Physical Printer Print Host Upload settings in PrusaSlicer are shared between different host types. All attributes are common to all host types, even where they do not apply. The active host upload configuration may be affected by settings that are not valid for the active host type, and not visible in its configuration form.

Expected: Physical Printer Print Host Upload settings in PrusaSlicer should be specific to the host type. Changing values in one host type should not affect another host type. Invalid or inapplicable settings should not be applied from other host types.

Consequences

  1. Upload configuration attributes may be applied where they are invalid (e.g. "Authorization Type" for PrusaConnect).
  2. Users who previously used PrusaLink with HTTP Digest authentication receive "HTTP 401: Missing or Invalid API Key" when trying to configure PrusaConnect.
  3. It is not possible to have (for example) a valid PrusaLink host upload configuration and a valid PrusaConnect host upload configuration stored in PrusaSlicer simultaneously, and easily switch between host upload types.

Workaround for PrusaLink to PrusaConnect reconfiguration

  1. Open Physical Printer settings.
  2. Edit PrusaLink settings.
    1. Change the authentication method to API Key.
  3. Edit PrusaConnect settings.
    1. Set the "Hostname, IP or URL" field to https://connect.prusa3d.com.
    2. Set the "API Key / Password" field to your Connect API key.
    3. "Test" connection button should now work.

Thanks to @kevin-8 for characterizing the issue.

I am not a Prusa employee. I am merely a user annoyed by this bug and grateful for a workaround. If anyone wants to copy this over to GitHub and make it a "real" bug, they have my permission.

This post was modified 3 weeks temu 3 times by jbowes
Opublikowany : 31/07/2025 10:53 pm
Share: