Whats Credential to connect with in the Puppeteer node

I’m having an issue with puppeteer, where at the top it’s asking for Credential to connect with
Can someone please explain, what is it? what creds do I need for this to work?

Hey @wizi hope all is good. Welcome to the community.

Which node are you using?

Ah I see now, you are probably using n8n-nodes-puppeteer-extended.
If this is the case, here is the what the credentials are and why it needs it.

Short version: this is n8n api key that the node is looking to be configured.

Long version:

It all starts in Puppeteer.node.ts where the node attempts to read credentials n8nApi:

Then the credentials are passed into ipcRequest inthe same file

        ipcRequest("check", {
			executionId,
			apiKey: credentials.apiKey,
			baseUrl: credentials.baseUrl,
		});

This function is defined in helpers.ts:

So far not really clear why it needs it. Keep going…

We’ve seen that the credentials are passed to ipcRequest for the check event. This event is coded in index.ts:

If I am reading this right, what it is doing is it periodically checks if the execution is still happening (the workflow is still running) by using n8n api and if not - terminates the browser interaction.

So, to answer your question, the credentials needed to be configured is n8n api key (Settings - n8n API) and it needs it to terminate puppeteer when the workflow is done.

1 Like

Thanks @jabbson been lurking for quite some time :slight_smile:
Thanks for the help and the file digging, I understand better now the way pup works.

Yet, I’m still facing a problem, not sure if it’s a brain fart on my end or a real issue:

I got the API up:

But nothing shows up in the “Select Credential to connect with“ drop box:

What am I missing?

Thank for the help so far

It was a brain fart, all is OK now.
Thank you so much @jabbson

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.