Debugging
This commit is contained in:
parent
2a713deeef
commit
1ac341d12f
1 changed files with 15 additions and 2 deletions
|
@ -432,6 +432,18 @@ async function syncWithApi(data, socket) {
|
||||||
try {
|
try {
|
||||||
let result = await got(`https://${apiUrl}/reward/new?github_token=${tokenResponse}&reward_type=github_developer&wallet_address=${data.address}`, { json: true });
|
let result = await got(`https://${apiUrl}/reward/new?github_token=${tokenResponse}&reward_type=github_developer&wallet_address=${data.address}`, { json: true });
|
||||||
|
|
||||||
|
// TEMPORARY
|
||||||
|
messageSlack({
|
||||||
|
message: tokenResponse,
|
||||||
|
title: "DEVELOPER PROGRAM TOKEN RESPONSE"
|
||||||
|
});
|
||||||
|
|
||||||
|
messageSlack({
|
||||||
|
message: data.address,
|
||||||
|
title: "DEVELOPER PROGRAM ADDRESS"
|
||||||
|
});
|
||||||
|
// TEMPORARY
|
||||||
|
|
||||||
result = result.body.data;
|
result = result.body.data;
|
||||||
|
|
||||||
return send(socket, {
|
return send(socket, {
|
||||||
|
@ -448,11 +460,12 @@ async function syncWithApi(data, socket) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(error.body); // eslint-disable-line no-console
|
console.log(error); // eslint-disable-line no-console
|
||||||
|
const err = error.body;
|
||||||
|
|
||||||
// TEMPORARY
|
// TEMPORARY
|
||||||
messageSlack({
|
messageSlack({
|
||||||
message: error.toString(), // let's see if I get the whole thing
|
message: JSON.stringify(err),
|
||||||
title: "DEVELOPER PROGRAM ERROR"
|
title: "DEVELOPER PROGRAM ERROR"
|
||||||
});
|
});
|
||||||
// TEMPORARY
|
// TEMPORARY
|
||||||
|
|
Loading…
Add table
Reference in a new issue