Hello, I just discovered n8n and Iβm already a fan. My first WF was easy to setup but the second one that looks a lot like the first breaks without error. If anyone got an idea of the reason that would be great !
My WF is supposed to check for me if some manga chapter is out on a site and if it is, send me a message on Disord.
I have a very simple postgres database with one table that keep the last chapter number of each manga followed.
I have inserted some logging instructions in the function nodes. It seems that the sub-WF is weirdly partially executed.
My main WF will get the list of website to query, make the requests and pass the HTMLs to the sublow.
The Subflow will parse the HTML check if the chapter is more recent than the one in the DB, if yes send a message on discord and log a string in the terminal else directly log the string.
Main:
Sub workflow:
The database used:
create table mangas
(
id serial not null
constraint mangas_pk
primary key,
name text not null,
source text not null,
last_chapter integer not null,
site text
);
alter table mangas
owner to driky;
create unique index mangas_id_uindex
on mangas (id);
INSERT INTO public.mangas (id, name, source, last_chapter, site) VALUES (1, 'Skeleton Soldier Couldnβt Protect the Dungeon', 'https://asurascans.com/manga/skeleton-soldier-couldnt-protect-the-dungeon/', 101, 'asura');
INSERT INTO public.mangas (id, name, source, last_chapter, site) VALUES (34, 'A Returnerβs Magic Should Be Special', 'https://asurascans.com/manga/a-returners-magic-should-be-special/', 121, 'asura');
The logs:
n8n_1 | Postgres result:
n8n_1 | ββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
n8n_1 | β (index) β Values β
n8n_1 | ββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
n8n_1 | β id β 1 β
n8n_1 | β name β 'Skeleton Soldier Couldnβt Protect the Dungeon' β
n8n_1 | β source β 'https://asurascans.com/manga/skeleton-soldier-couldnt-protect-the-dungeon/' β
n8n_1 | β site β 'asura' β
n8n_1 | β last_chapter β 101 β
n8n_1 | ββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
n8n_1 | Postgres result:
n8n_1 | ββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
n8n_1 | β (index) β Values β
n8n_1 | ββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
n8n_1 | β id β 34 β
n8n_1 | β name β 'A Returnerβs Magic Should Be Special' β
n8n_1 | β source β 'https://asurascans.com/manga/a-returners-magic-should-be-special/' β
n8n_1 | β site β 'asura' β
n8n_1 | β last_chapter β 121 β
n8n_1 | ββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
n8n_1 | TEST
n8n_1 | βββββββββββ¬ββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
n8n_1 | β (index) β chapter β link β
n8n_1 | βββββββββββΌββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
n8n_1 | β json β 'Chapter 102' β 'https://asurascans.com/skeleton-soldier-couldnt-protect-the-dungeon-chapter-102/' β
n8n_1 | βββββββββββ΄ββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
n8n_1 | https://asurascans.com/skeleton-soldier-couldnt-protect-the-dungeon-chapter-102/
n8n_1 | 102
n8n_1 | ASURA2 END
n8n_1 | ASURA2 END