我试图使用基本身份验证从SuiteScript调用python endpoints .

因为我正在通过:

var objectVariable = {"customer_code":customer_code,"customer_name":customer_name,
"evexso_code":evexso_code,"delivery_address_1":delivery_address_1,
"delivery_address_2":delivery_address_2,"delivery_suburb":delivery_suburb,
"delivery_postcode":delivery_postcode,"delivery_state":delivery_state,
"delivery_country":delivery_country,"monday_run":monday_run,
"tuesday_run":tuesday_run,"wednesday_run":wednesday_run,
"thursday_run":thursday_run,"friday_run":friday_run,
"saturday_run":saturday_run,"sunday_run":sunday_run,
"erp_id":erp_id,"erp_status":erp_status,
"eveXso_action":eveXso_action
};
var jsonString = JSON.stringify(objectVariable);
var response = nlapiRequestURL(url,jsonString,headers,'PUT');

我收到内部服务器错误,但它正在postman中执行 .