Closed dhinakg closed 6 years ago
So, you do get one successful message then? Or only failed ones?
I get no successful messages at all, only messages with the above error.
Is this for a private repository? If not, can you link it?
Edit: Actually I think I can tell which repo you're using.
Should be fixed, using a header value for the repo id.
https://docs.travis-ci.com/user/notifications/#webhooks-delivery-format
To quickly identify the repository involved, we include a
Travis-Repo-Slug
header, with a format of account/repository, so for instance travis-ci/travis-ci.
If you're still having the issue (after the site is synced), please reopen the issue and try to provide the payload sent by travis.
Ok, let me check (the repo is http://github.com/dhinakg/tempbit by the way). How can I get the payload from Travis?
Nope. Still get the same error.
Exact reproduction steps:
Error: "TypeError: Cannot read property 'name' of undefined\n at Travis.<anonymous> (/app/dist/provider/Travis.js:28:48)\n at Generator.next (<anonymous>)\n at /app/dist/provider/Travis.js:6:71\n at new Promise (<anonymous>)\n at __awaiter (/app/dist/provider/Travis.js:2:12)\n at Travis.parseData (/app/dist/provider/Travis.js:21:16)\n at Travis.<anonymous> (/app/dist/provider/BaseProvider.js:57:33)\n at Generator.next (<anonymous>)\n at /app/dist/provider/BaseProvider.js:6:71\n at new Promise (<anonymous>)"
Both times the error is identical.
EDIT: (It seems to be that I cannot reopen the issue if a collaborator closes it.
You could setup skyhook locally and print the payload to the console. If you can't open any ports (for whatever reason), you can use https://ngrok.com/. I don't see anything wrong based on travis's documentation so I'm going to wait on the payload you're getting.
Sorry for the inactivity - I've been quite busy lately. I'll be able to test tomorrow or Saturday.
Ok, so the first edit I made to test locally (dhinakg/tempbit@8b21deb9e) didn't send any messages to Discord with the glitch.me server (skyhook.glitch.me) nor the self hosted one. I'm going to try to trigger another build and see if it works.
EDIT: The "only sending messages sometimes" may be because I had Travis enabled on the repo in both .org and .com. I'm switching to .com and trying again (re-encrypting for com).
Ok, so I still get the errors.
Only difference seems to be the longer path.
The ending/build complete error is same in Discord, but different in the console.
I'm going to try to print the payload soon.
I believe this is the payload.
I edited index.ts
and added console.log(req)
in between these 2 lines and then output the command to a file (npm start > log.log
).
I'm also attaching the entire file here.
It's working fine for me?
Huh. I'll try forcing a build again.
Nope. I'm still getting errors.
Have you properly setup your webhook? I'm not getting this with the payload you sent and the provider is in line with travis's documentation. Continue to debug yourself as I don't think anything is wrong on our end.
I'm getting this issue as well. The relevant commit can be found here. I used the skyhook website to configure the trigger, and you can see that I used a secure variable for the webhook.
I get: 2 times, before/when the build starts and after it ends.