[Issue] Bad Argument Error #33
Replies: 19 comments
-
At what point do you get the error message? What are you trying to to do? |
Beta Was this translation helpful? Give feedback.
-
Sure, I was getting this error on switching to the plugin in menu. It looks like my domain works fine and the API key allows the extension to connect successfully, but once it proceeds to the export stage it crashes. I am attaching my log here |
Beta Was this translation helpful? Give feedback.
-
Which Immich server version are running? |
Beta Was this translation helpful? Give feedback.
-
I upgraded to latest and it still causes a crash, albeit with a different error. Here is the updated log When trying to upload only one asset without any other changes, I get the following error |
Beta Was this translation helpful? Give feedback.
-
The error varies somewhat every single time I attempt, and the section of the logs claiming network connection lost seems unlikely to me as I am very much connected to the server and I don't otherwise notice any network drops either on my server or personal machine |
Beta Was this translation helpful? Give feedback.
-
Your log looks like no request is being successful.
The plugin is doing a POST request, and the response states a 404 with method GET. So it looks like the Immich server receives a get request, which is wrong. Is it possible that your Immich server is behind Web application firewall, or do you use a proxy on your client? As for networkConnectionLost, this is just the "normal" error message from the Lightroom SDK, when somethings goes wrong with PUT multipart request. Forget about that. For now I'm a bit puzzled. But the issue made clear, that the error handling is completely wrong in ImmichAPI, as the log says i.e. |
Beta Was this translation helpful? Give feedback.
-
I have Immich behind a Cloudflare tunnel, but when I enter the tailscale IP directly it always automatically changes the bare IP to my domain. I don't know how to prevent it from doing that |
Beta Was this translation helpful? Give feedback.
-
You can manually set your domain to the tailscale ip locally via hosts file ( Linux /etc/host or Windows c:/Windows/system32/drivers/etc/hosts) |
Beta Was this translation helpful? Give feedback.
-
What about your mobile? I assume you've got the Immich app installed. Which URL do you use there? |
Beta Was this translation helpful? Give feedback.
-
I use my domain with the Cloudflare tunnel on the app without issue. At risk of doxing myself, here is a link with what happens When I enter the Tailscale IP, LR corrects it to utilise my Cloudlare tunnel as opposed to wireguard and I can't stop it |
Beta Was this translation helpful? Give feedback.
-
OK, thanks for the link. The next release will be out in a couple of days. In the meantime you could use the 1.0.0 release. |
Beta Was this translation helpful? Give feedback.
-
@bmachek Thanks for taking all your time to work through this. I'll wait until the next release and if this is solved, I will close the issue so that you know. |
Beta Was this translation helpful? Give feedback.
-
There are still errors with uploading that now I suspect have to do with Tailscale as I can successfully use the Tailscale IP. I don't know the cause. Included are the LR error and the log file |
Beta Was this translation helpful? Give feedback.
-
Same error, yes. Do you run your Immich server in your homelab? Can you try to upload at home directly via the LAN IP? The problem with Tailscale seems to be, that all non GET requests are rewritten to GET, which the Immich server rejects with a 404. |
Beta Was this translation helpful? Give feedback.
-
I don't run Immich in my homelab unfortunately, and I can't open the ports on the network where it is located either. Are both tailscale and cloudflare changing the requests to GET? I doesn't work with either service. I will take some time this weekend to set up Traefik and see if that remedies the issue, otherwise I can't make use of this for now. |
Beta Was this translation helpful? Give feedback.
-
Traefik sounds like a good idea. If it still doesn't work, let me know. |
Beta Was this translation helpful? Give feedback.
-
Some additional thoughts on that:
|
Beta Was this translation helpful? Give feedback.
-
@AngelaDMerkel Any news on that? |
Beta Was this translation helpful? Give feedback.
-
I haven't been able to find the time to get everything working yet unfortunately, but if you've had success with it, the problem is more than likely mine.
I have immich mobile working successfully with the cloudflare tunnel. So far it's only your add-on which I have had trouble with
This might be the problem here actually. I tried this both times from my office which is proxied. I will update when I can access an unmonitored network |
Beta Was this translation helpful? Give feedback.
-
I am running on the newest 1.1.0 but get an error stating the following:
bad argument #1 to '?' (string expected, got nil)
As troubleshooting I have deleted the plugin, restarted Lightroom, and installed both by directly adding to the Application Support and by loading from the Plugin Manager GUI
Beta Was this translation helpful? Give feedback.
All reactions