nadermx / backgroundremover

Background Remover lets you Remove Background from images and video using AI with a simple command line interface that is free and open source.
https://www.backgroundremoverai.com
MIT License
6.46k stars 538 forks source link

TLD SSL issue #61

Closed Techsetter closed 1 year ago

Techsetter commented 1 year ago

Hi, using the js version, getting Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: api.backgroundremover.app. is not in the cert's altnames: DNS:api.backgroundremoverai.com

Techsetter commented 1 year ago

Also, how can I pass in an image via an online url (vs a local image?)

Techsetter commented 1 year ago

Please let me know! I would love to use your API :)

nadermx commented 1 year ago

Hi, we changed domains, please update code to https://backgroundremoverai.com/api/#settings-i18n-introduction

Techsetter commented 1 year ago

Thank you nadermx! :)

So I successfully got the result url: '/static/downloads/d37317089f3d40349ea1d81f12b0ba89/blob.png', Are we supposed to be able to access this at "https://api.backgroundremoverai.com/v1/results/static/downloads/d37317089f3d40349ea1d81f12b0ba89/blob.png"? Or how does it get stored locally?

JoeGarcia2 commented 1 year ago

Same question as above. How do you accesst the file after API conversion returns '/static/downloads......'?

nadermx commented 1 year ago

I am not sure I am understanding. The API code, should save that to a local folder

    if finished:
        for f in data.get('files'):
            download_file("%s" % f.get('url'), "%s" % f.get('filename'))
        return {"finished": "files downloaded"}

That url should keep the file accesible till its delete from the server but the api script should be saving it to local

JoeGarcia2 commented 1 year ago

Ignore the last question. I figured it out. The resulting image is located at: https://api.backgroundremoverai.com/static/downloads/ The convert endpoint had domain: https://backgroundremover.app so I was looking for the image at https://backgroundremover.app/static/downloads/ My mistake

nadermx commented 1 year ago

That must of been old code, so you updated it and its fine?

On Thu, May 11, 2023 at 4:09 PM JoeGarcia2 @.***> wrote:

Ignore the last question. I figured it out. The resulting image is located at: https://api.backgroundremoverai.com/static/downloads/ The convert endpoint had domain: https://backgroundremover.app so I was looking for the image at https://backgroundremover.app/static/downloads/ My mistake

— Reply to this email directly, view it on GitHub https://github.com/nadermx/backgroundremover/issues/61#issuecomment-1544610190, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYACXFXOXGRNU3UI6DLBLLXFVBQVANCNFSM6AAAAAAWH6CT64 . You are receiving this because you modified the open/close state.Message ID: @.***>

JoeGarcia2 commented 1 year ago

Yes. All good. Thanks for the fast reply.