-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Server error or APl not found. api Import::server is server_error #1237
Comments
This fails for a particular picture being imported, doesn't it? Could you share with us that picture so that we can reproduce the problem on our end? |
As @kamil4 said it seems to be a specific failf (or a specific category of files) which is failing. These files have probably exhibited certain characteristics which the EXIF tool is not capable of handling (e.g. a particular EXIF attribute, etc.) . So without the specific file it will be difficult to solve this problem. The list of file names is not really helpful. However, if you are very brave and if you have the possibility, you could try to switch to the branch "consistent_json_api". The main achievement of this branch is a consistent and much more accurate error reporting. Maybe this branch would provide you and us with an error message which helps to solve this problem. |
Okay, I'll try it. |
It's failing here: https://github.com/LycheeOrg/php-exif/blob/2f74ba7d7a66bc8c9af4e8e8731797d9d4103437/lib/PHPExif/Mapper/Exiftool.php#L355 so it must be getting triggered by |
@jhrcc Just to make sure that I understand, did you try uploading the same set of photos using Upload Photos functionality? I would expect it should fail also, but it should make it much easier to figure out which file(s) it's failing on... |
Okay, I'll try it
|
Thank you, after I imported the photos once by importing them, all the rest can be imported normally, so I closed this issue |
I just hit same problem while importing photo with single keyword in both tags. Solution is to "homegenize" $value of tags.
|
For anyone, like me, who also hit this problem, a quick workaround is to remove the
|
This also fixed it for me... if this can be called a fix at least. |
Please check whether you still have problems uploading your photos with the recent version of Lychee. This mystic error message If the bug still exists on a up-to-date version of Lychee, please file a new issue with the updated (and proper) error message. We would also be interested into the failing sample photo. |
I'm using the latest LSIO docker, which I installed last week. Should be version 4.4.0. Is that too old? |
Yeah, 4.4.0 is too old. This bug was fixed in 4.5.3. Note that our official docker image is at https://hub.docker.com/r/lycheeorg/lychee |
Thank you for the clarification! |
It was closed already :) |
😄 |
production.ERROR
[2022-03-03 02:50:12] production.ERROR: array_merge(): Argument #1 must be of type array, string given {"exception":"[object] (TypeError(code: 0): array_merge(): Argument #1 must be of type array, string given at /var/www/html/Lychee/vendor/lychee-org/php-exif/lib/PHPExif/Mapper/Exiftool.php:355)
[stacktrace]
#0 /var/www/html/Lychee/vendor/lychee-org/php-exif/lib/PHPExif/Mapper/Exiftool.php(355): array_merge()
#1 /var/www/html/Lychee/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/Exiftool.php(163): PHPExif\Mapper\Exiftool->mapRawData()
#2 /var/www/html/Lychee/vendor/lychee-org/php-exif/lib/PHPExif/Reader/Reader.php(108): PHPExif\Adapter\Exiftool->getExifFromFile()
#3 /var/www/html/Lychee/app/Metadata/Extractor.php(153): PHPExif\Reader\Reader->read()
#4 /var/www/html/Lychee/app/Actions/Photo/Create.php(127): App\Metadata\Extractor->extract()
#5 /var/www/html/Lychee/app/Actions/Photo/Create.php(71): App\Actions\Photo\Create->loadFileMetadata()
#6 /var/www/html/Lychee/app/Actions/Import/Exec.php(275): App\Actions\Photo\Create->add()
#7 /var/www/html/Lychee/app/Actions/Import/FromServer.php(73): App\Actions\Import\Exec->do()
#8 /var/www/html/Lychee/vendor/symfony/http-foundation/StreamedResponse.php(109): App\Actions\Import\FromServer->App\Actions\Import\{closure}()
#9 /var/www/html/Lychee/vendor/symfony/http-foundation/Response.php(394): Symfony\Component\HttpFoundation\StreamedResponse->sendContent()
#10 /var/www/html/Lychee/vendor/laravel/framework/src/Illuminate/Support/HigherOrderTapProxy.php(34): Symfony\Component\HttpFoundation\Response->send()
#11 /var/www/html/Lychee/public/index.php(75): Illuminate\Support\HigherOrderTapProxy->__call()
#12 {main}
"}
The text was updated successfully, but these errors were encountered: