kraken-io / kraken-python

Official Kraken.io library for Python
Other
10 stars 11 forks source link

api is failing to resize the image and store it to s3 bucket #14

Open muhammad-grayphite opened 2 years ago

muhammad-grayphite commented 2 years ago

api giving strange error like "Error while creating temporary directory in file storage." and 500 error message "Kraken.io has encountered an unexpected error and cannot fulfill your request.". Please help me with the possible solution. Thanks

VoidVolker commented 2 years ago

Hi! Issue with a server, not with a library. We will fix it ASAP. Thanks for report.

muhammad-grayphite commented 2 years ago

okay, please let me know when it fixed. Thanks.

VoidVolker commented 2 years ago

Shall be fixed. Can you check if all works fine at your end, please?

muhammad-grayphite commented 2 years ago

okay I'll check and observe in this week and let you know. thanks:)

muhammad-grayphite commented 2 years ago

Hi @VoidVolker, I am still getting this error "Error while creating temporary directory in file storage."

VoidVolker commented 2 years ago

Can you share your code, upload settings and image, please?

muhammad-grayphite commented 2 years ago
`
s3 = boto3.client("s3")                
resize_array = [
                    {
                        "id": "350",
                        "width": "350",
                        "strategy": "landscape",
                        "storage_path": dst_key.replace(type_match, "_350.")
                        + image_type,
                    },
                    {
                        "id": "700",
                        "width": "700",
                        "strategy": "landscape",
                        "storage_path": dst_key.replace(type_match, "_700.")
                        + image_type,
                    },
                    {
                        "id": "900",
                        "width": "900",
                        "strategy": "landscape",
                        "storage_path": dst_key.replace(type_match, "_900.")
                        + image_type,
                    },
                    {
                        "id": "1000",
                        "width": "1000",
                        "strategy": "landscape",
                        "storage_path": dst_key.replace(type_match, "_1000.")
                        + image_type,
                    },
                    {
                        "id": "1200",
                        "width": "1200",
                        "strategy": "landscape",
                        "storage_path": dst_key.replace(type_match, "_1200.")
                        + image_type,
                    },
                    {
                        "id": "1440",
                        "width": "1440",
                        "strategy": "landscape",
                        "storage_path": dst_key.replace(type_match, "_1440.")
                        + image_type,
                    },
                ]
                params = {
                        "wait": True,
                        "lossy": True,
                        "s3_store": {
                            "key": s3_key,
                            "secret": s3_secret,
                            "bucket": dst_bucket,
                            "region": s3_region,
                        },
                        "resize": resize_array,
                    }
                file_url = s3.generate_presigned_url(
                ClientMethod="get_object",
                Params={"Bucket": src_bucket, "Key": src_key},
                ExpiresIn=3600,
            )
            result = api.url(file_url, params)
            `
muhammad-grayphite commented 2 years ago

is kraken currently down? I am getting 500 server error on every request. Screenshot from 2022-03-28 21-32-04

danielsreichenbach commented 2 years ago

@bilal-grayphite just tried a larger random image batch, not seeing anything like this. Can you provide a time frame when this was happening?

muhammad-grayphite commented 2 years ago

Hi @danielsreichenbach, it was happend when I posted above mesage. Our main concern is "Error while creating temporary directory in file storage." . for the "Kraken.io has encountered an unexpected error and cannot fulfill your request." I have checked most of the images are not valid but still message need to improve. please look into "Error while creating temporary directory in file storage."

fzamperin commented 2 years ago

I'm having the same error, I opened a ticket with kraken io but still waiting, any news on this issue?

idmp152 commented 2 years ago

I'm getting this error too now.

muhammad-grayphite commented 2 years ago

@VoidVolker now I am gettig "Error while creating temporary directory in file storage." issue on almost every request now. I need feadback???

VoidVolker commented 2 years ago

We working on a solution, thanks for report.