If checked separately on just one Yourls node, it seems to work fine.
But if I use this node in the workflow, I get the error “URL already exists in database”.
{"message":"400 - {\"status\":\"fail\",\"code\":\"error:url\",\"message\":\"https://docs.google.com/spreadsheets/d/1HCNrho6wH5yh[...] already exists in database (short URL: 1.1144.ru/20)\",\"errorCode\":\"400\",\"statusCode\":\"400\",\"url\":{\"keyword\":\"20\",\"url\":\"https://docs.google.com/spreadsheets/d/1HCNpaLXfr9pDyOy9w28j8/edit#gid=1902344499\",\"title\":\"Ошибки публикации в zzap - Google Таблицы\",\"date\":\"2022-09-07 19:36:48\",\"ip\":\"17\",\"clicks\":\"0\"},\"title\":\"Ошибки публикации в zzap - Google Таблицы\",\"shorturl\":\"http://144.ru/20\"}","name":"Error","stack":"Error: Request failed with status code 400\n at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11)\n at IncomingMessage.emit (node:events:525:35)\n at endReadableNT (node:internal/streams/readable:1358:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)"}
Please share the workflow
Information on your n8n setup
n8n version: 0.188.0
Database you’re using (default: SQLite): SQLite
Running n8n with the execution process [own(default), main]:
Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker
All links of this kind with Cyrillic characters or russian words like “Облицовка”, “рестайлинг”, etc will not work in that workflow. But they work on their own if you manually insert them into the browser or click on them.
This happens precisely because they have Cyrillic characters.
I thought there was a way in n8n that works in a similar way as in a browser,
when you manually copy or paste something, it converts ( punycode-converter ) all the links.
For example, here’s a website:
https://объясняем.рф
and if you go to it and copy the link address from your browser, you get this:
https://xn--90aivcdt6dxbc.xn--p1ai/
It is the same address, just Cyrillic characters converted to Latin.
You are not using a full domain with cyrillic characters though so a full conversion likely wouldn’t be needed like that. Instead what you would need to do is encode the URI so that it can be understood so the URL you have would go from…
https://docs.google.com/forms/d/e/1FAIpQLSfh005B4KhktaUllQe4YWCMeMTwi8GuEP_RDMlZsTBJfhE25Q/viewform?usp=pp_url&entry.122621695=105424&entry.1246242845=Облицовка Audiv A8 (D4) III рестайлинг (2013–2018)&entry.308542603=250
Yes, everything works perfectly. Now I don’t need the Yourls node.
While I was digging through the documentation, the forum, and most likely found what the error could be(sort of):
In config.php - must stand false here:
/** Allow multiple short URLs for a same long URL
** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
define( ‘YOURLS_UNIQUE_URLS’, false );