Custom QR Code with Logo

ОПЛАЧЕНО
От qrcode-monkey | Обновлено 8 месяцев назад | Tools
Популярность

9.8 / 10

Задержка

1,047ms

Уровень обслуживания

97%

Назад ко всем обсуждениям

Problem getting QR with logo

avatar
wmclaxton
5 месяцев назад

I am facing the dread 500 error when using this custom API: https://qrcode-monkey.p.rapidapi.com/qr/custom

It seems to work with an image uploaded previously. But it does not work with a newly uploaded image.

This works: data=https://certificates-dev1.nextid.com/certificate?id=1989fc17-e422-4743-85f3-b5392ae9338c&size=120&config={
“body”: “edge-cut”,
“bodyColor”: “#16456a”,
“bgColor”: “#ffffff”,
“eyeBall”: “ball0”,
“eye”: “frame0”,
“eyeBall1Color”: “#16456a”,
“eyeBall2Color”: “#16456a”,
“eyeBall3Color”: “#16456a”,
“eye1Color”: “#16456a”,
“eye2Color”: “#16456a”,
“eye3Color”: “#16456a”,
“logo”: “f2bf0c09b17cb9760d59cd7fda61813f5e4c9cbd.png”,
“logoMode”: “clean”
}&file=png

This does not work: data=https://certificates-dev1.nextid.com/certificate?id=1989fc17-e422-4743-85f3-b5392ae9338c&size=120&config={
“body”: “edge-cut”,
“bodyColor”: “#16456a”,
“bgColor”: “#ffffff”,
“eyeBall”: “ball0”,
“eye”: “frame0”,
“eyeBall1Color”: “#16456a”,
“eyeBall2Color”: “#16456a”,
“eyeBall3Color”: “#16456a”,
“eye1Color”: “#16456a”,
“eye2Color”: “#16456a”,
“eye3Color”: “#16456a”,
“logo”: “00d6de553650a85a5ce00fb437e89af981d17fd8.png”,
“logoMode”: “clean”
}&file=png

The difference is in the logo file. Perhaps the logo was not updated successfully?

avatar
wmclaxton commented 5 месяцев назад

The problem may originate with /qr/upload API. Here is a test:

  1. Navigate to endpoints for testing (https://rapidapi.com/qrcode-monkey/api/custom-qr-code-with-logo/).
  2. Select ‘upload image’ and confirm that X-RapidAPI-Key value is correct (a valid key).
  3. Click ‘Test Endpoint’
  4. Notice the 500 error and status message: “Form fieldname ‘file’ is not existing”.

Either the form on RapidAPI is corrupted or the API is failing.

avatar
wmclaxton commented 5 месяцев назад

7 days without response. I know it’s the holidays be could you at least acknowledge my report?

avatar
wmclaxton commented 5 месяцев назад

I have downgraded from Ultra to Pro. If I don’t get a response soon, I will be looking for another API.

avatar
wmclaxton commented 4 месяца назад

We have modified our code to improve error handling and will now auto-rollover to Google API if the subscribed API is not responding or is throwing errors. In the process, we documented that image upload is failing on the QR Monkey API, so the fetch (generate custom QR) fails because the image does not exist. Also, a previously uploaded logo image is not accessible, perhaps because their service removes it after some period of time (there is no guarantee of retention time) or after some number of calls.

avatar
qrcode-monkey commented 4 месяца назад

Hello,

sorry! I did not get a notification. I will look into it today regarding the fetch and get back to you. Regarding the upload: I could not get the upload testing to work via the RapidAPI website. But when implementing you need to imitate a form and the form field for the file you want to upload is called “file”.

avatar
qrcode-monkey commented 4 месяца назад

I just looked at the fetch and it is difficult to check without the original logo files. Please send the files to norbert@qrcode.studio, thanks.

avatar
wmclaxton commented 4 месяца назад

Norbert, hi -

I have got to the bottom of the problem. Let me explain.

  1. Our call to your Upload Image API wrongly included the line “content-type”: “application/json” in the headers section. It was apparently added sometime after 6 Dec 2021 with some other minor code changes. This change caused the upload to fail with error 500. When this line is removed, the image can be uploaded successfully and the problem is not with your implementation.

  2. The upload function was not being called prior to 21 Dec 2021 because we relied on a previously uploaded logo image. But that logo image expired at your server around that date, and so our calls to the Custom QR Generator API failed at that point. In our attempt to upload new logo images, we encountered the above-mentioned header error.

I just wanted to clarify this issue and close the case.

avatar
AndreyArtamonov commented 4 месяца назад

Hello!
This problem is repeating

"The problem may originate with /qr/upload API. Here is a test:

Navigate to endpoints for testing (https://rapidapi.com/qrcode-monkey/api/custom-qr-code-with-logo/).
Select ‘upload image’ and confirm that X-RapidAPI-Key value is correct (a valid key).
Click ‘Test Endpoint’
Notice the 500 error and status message: “Form fieldname ‘file’ is not existing”."

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии
Оценки: 3.3 - Голосов: 6