Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console.log Not working #12

Open
zachrickards opened this issue Jul 5, 2018 · 3 comments
Open

Console.log Not working #12

zachrickards opened this issue Jul 5, 2018 · 3 comments
Labels

Comments

@zachrickards
Copy link

Not much to say here other than console.log are not working

@shawnmclean
Copy link
Contributor

Hi @zachrickards. Where are you doing the console.log? I've just tested this from a rule and hook and its showing the output in this extension.

@fyockm
Copy link
Contributor

fyockm commented Jul 9, 2018

@zachrickards there is a known issue whereby logging will not work for cron type webtasks if you have selected Node 8. as @shawnmclean mentioned, logging from other extensibility points (rules/hooks/custom db scripts) should be working as expected.

@rwtombaugh rwtombaugh added the bug label Nov 20, 2018
@leberknecht
Copy link

leberknecht commented Jul 11, 2023

Can second that, no console.log output shown from my post-registration hook. It does show the even around it though:
image

My snippet:

/**
* Handler that will be called during the execution of a PostUserRegistration flow.
*
* @param {Event} event - Details about the context and user that has registered.
* @param {PostUserRegistrationAPI} api - Methods and utilities to help change the behavior after a signup.
*/
console.log('testing')
const axios = require("axios");

exports.onExecutePostUserRegistration = async (event) => {
  if (event.request["user_agent"] != "Symfony HttpClient/Curl" && event.transaction) {
    return await axios.post(
    `${event.transaction.redirect_uri.replace("xxx.", "api.")}/users/signup`,
    {
      email: event.user.email,
    },
    {
      headers: {
        "X-Signup-Api-Key": `${event.secrets.SIGNUP_API_TOKEN}`,
      }
    }
  );
  }
};

the axios call is actually triggered. Doesnt matter if i test the action from the debug-feature or if its triggered from real-life call. Tested on firefox 114.0.1 and chrome 114.0.5735.198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants