smartcontractkit / smartcontractkit/chainlink

[NODE] external initiator inconsistency

Open
#4,772 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

investigating
Dominant language
Go
Stars
8.2k
Forks
2k
Avg merge
1d 23h
Merged PRs (30d)
202

Description

I wrote a simple external initiator and noticed that the job id passed during registration and delete is inconsistent

register job {"host":"localhost:3002","user-agent":"Go-http-client/1.1","content-length":"144","content-type":"application/json","x-chainlink-ea-accesskey":"9g1Yk9laC2NG8KtIHHuImr0fDSr7Yfp+zIzmgldB9dj1c5XYXYBXCc2QEp3swci6","x-chainlink-ea-secret":"SSi1o3aPQnhvTJjViH559+XLkoZ4utsfyGwPUmrKCqiF28IDhuE9mtqSQqQqs2FD","accept-encoding":"gzip"} {"jobId":"aa23fe6855c945209ad6aa1854834777","type":"external","params":{"foo":"bar","addresses":["0x8ac6bf0700ed41d1323a1f9c16d85d76f1196cdb"]}}
delete {"jobId":"aa23fe68-55c9-4520-9ad6-aa1854834777"} {"host":"localhost:3002","user-agent":"Go-http-client/1.1","content-type":"application/json","x-chainlink-ea-accesskey":"9g1Yk9laC2NG8KtIHHuImr0fDSr7Yfp+zIzmgldB9dj1c5XYXYBXCc2QEp3swci6","x-chainlink-ea-secret":"SSi1o3aPQnhvTJjViH559+XLkoZ4utsfyGwPUmrKCqiF28IDhuE9mtqSQqQqs2FD","accept-encoding":"gzip"} {} {}
one is simple uuid but during registration, the '-' is removed ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the external initiator registration and delete requests shown in the issue, comparing the returned jobId with the identifier accepted by deletion. Trace the job ID handling between those two API entry points and confirm that registration and deletion use the same UUID representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.