top of page

Forum Posts

Rashid Mahmood
Velo Certified
Velo Certified
Nov 16, 2021
In Coding with Velo
I want to get member's badges List and I am using listMemberBadges API. It works when I run the code in the backend by myself. But it doesn't work when I run this code in job scheduler. Here is the code. export function listMemberBadges(memberIds) { let membersArray = [memberIds] return badges.listMemberBadges(membersArray).then((memberBadges) => { return memberBadges; }) } Is this the bug from Wix side or I am missing something? Thanks.
0
0
18
Rashid Mahmood
Velo Certified
Velo Certified
Jun 21, 2021
In Coding with Velo
I am trying to connect external database using MySQL npm. I added possible IPs in remote access whitelist. But when I run connection function, wix change my IP and "Access Denied" error shows. Here is the code that I am trying.. const mysql = require('mysql'); var connection = mysql.createConnection({ host: "host_Name", user: "database_User", password: "user_Password", database: "database_Name", port: 3306 }); connection.connect(function (err) { if (err) { console.error('error connecting: ' + err.stack); return; } console.log('connected as id ' + connection.threadId); }); Here is the error... Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'database_User'@'35.221.59.48' (using password: YES).
0
0
50

Rashid Mahmood

Velo Certified
+4
More actions
bottom of page