I
Immich•3y ago
iluvaty

"Bad request" upload from Android immich app

I just set up immich according to the docs via portainer. ( I changed all the .env to stack.env) the env is like following
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=1YoKj5oPQV66
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=/wd-drive/Pictures/Immich
TYPESENSE_API_KEY=some-random-text
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
IMMICH_API_URL_EXTERNAL=https://....com
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=1YoKj5oPQV66
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=/wd-drive/Pictures/Immich
TYPESENSE_API_KEY=some-random-text
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
IMMICH_API_URL_EXTERNAL=https://....com
I followed the post for post install, I added admin and user, I downloaded the phone app and set up albums for upload. Now the thing is that it puts the pictures in the upload folder, but somehow the immich server responds with failure, so the phone gets "Bad Request" into all the uploads, even though it uploaded the picture in the uploads folder. Because the phone then thinks it didnt upload, it tries again it tries to upload it again. This continues indefinitely and the immich server will not see uploaded pictures, just aswell as the phone. The main problem seems to be that the server responds with "Bad request" (I guess 400 http code). Since I followed the exact procedure of the docs I cannot find the error. I set http://192.168.1.2:2283/api as the URL via the phone aswell as without the /api. uploading from browser in Desktop worked though, so is there a problem with the app?
38 Replies
Alex Tran
Alex Tran•3y ago
IMMICH_API_URL_EXTERNAL=https://....com I don't think you need to change this at all please keep it as default
iluvaty
iluvatyOP•3y ago
Okay will do but I changed it only after the same thing happened without it being vhangedt and uploading from Firefox via desktop works
Alex Tran
Alex Tran•3y ago
I don't fully understand can you elaborate?
iluvaty
iluvatyOP•3y ago
This change was made after it already didnt work so I dont think this is what caused it. I am changing it back right now though and will test one more time
iluvaty
iluvatyOP•3y ago
No description
Alex Tran
Alex Tran•3y ago
Can you check the server/microservices log?
iluvaty
iluvatyOP•3y ago
okay
Alex Tran
Alex Tran•3y ago
everything looks ok on the server
iluvaty
iluvatyOP•3y ago
yes, I really dont get why my phone receives the bad request response though then
Alex Tran
Alex Tran•3y ago
what is the microservices log?
iluvaty
iluvatyOP•3y ago
wasnt it what I already sent?
Alex Tran
Alex Tran•3y ago
that was the server I believe ah sorry that was microservices what was the server log?
iluvaty
iluvatyOP•3y ago
immich_web?
Alex Tran
Alex Tran•3y ago
immich-server
iluvaty
iluvatyOP•3y ago
didnt see it first. here it is
Alex Tran
Alex Tran•3y ago
hmm nothing abnormal either what is the log on the mobile app says?
iluvaty
iluvatyOP•3y ago
as I said from the browser it seems to work, from desktop, so maybe its the phone?
Alex Tran
Alex Tran•3y ago
yeah this is strange error what version of the mobile app are you on?
iluvaty
iluvatyOP•3y ago
I used f droid .. 1.43.0
Alex Tran
Alex Tran•3y ago
hmm we are on 1.54 only 11 version later šŸ˜›
iluvaty
iluvatyOP•3y ago
oh.. so I need to download from the play store?
Alex Tran
Alex Tran•3y ago
I f-droid just get updated can you check?
iluvaty
iluvatyOP•3y ago
yes give me a second it updates now I will try now
Alex Tran
Alex Tran•3y ago
since Immich is still in development, we can only guarantee that the same version of mobile and server would work reliably
iluvaty
iluvatyOP•3y ago
but just fyi the app said "client and server are up to date" when I had 1.43.0 so idk if the check for that went correctly
Alex Tran
Alex Tran•3y ago
yeah that is a bug šŸ˜„ sorry about that confusion
iluvaty
iluvatyOP•3y ago
If it said i need to update I would have done for sure šŸ˜‰ its an awesome app btw!
Alex Tran
Alex Tran•3y ago
thanks man I appreciate it!
iluvaty
iluvatyOP•3y ago
okay so it works now
Alex Tran
Alex Tran•3y ago
man I can't type tonight sorry for the bad gramma
iluvaty
iluvatyOP•3y ago
so conclusion: 1) Great app, I cannot understand how something so awesome can be done by so few people 2) my constructive criticism would be to make the check for versions more stable and update f droid 😁😁 np
Alex Tran
Alex Tran•3y ago
thank you, I will keep this in mind and make the checking for version more robust
iluvaty
iluvatyOP•3y ago
my grammar is bad too most of the time thanks a lot for your time
Alex Tran
Alex Tran•3y ago
No thank you for helping out! enjoy and if you encouter anything weird, let me know
iluvaty
iluvatyOP•3y ago
will do for sure :). alright see you

Did you find this page helpful?