我正在使用 Postman 连接到 NetSuite,并且所有设置和授权均已完成。 当我尝试对示例模板使用 GET 方法时,请求返回 Status 200 OK,但出现此错误?
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>
soapenv:Server.userException
</faultcode>
<faultstring>
Incorrect data center requested! The data center you are requesting is not the data center where your account is hosted. To obtain the correct URL for your request, please use the SOAP getDataCenterUrls operation.
</faultstring>
<detail>
<platformFaults:unexpectedErrorFault xmlns:platformFaults="urn:faults_/services/rest/record/v1/metadata-catalog/customer.platform.webservices.netsuite.com">
<platformFaults:code>
USER_ERROR
</platformFaults:code>
<platformFaults:message>
Incorrect data center requested! The data center you are requesting is not the data center where your account is hosted. To obtain the correct URL for your request, please use the SOAP getDataCenterUrls operation.
</platformFaults:message>
</platformFaults:unexpectedErrorFault>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">
acct027.prod.svale.netledger.com
</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
我见过类似的其他案例,所有响应都与获取公司 URL 中的地址有关,就像我所做的那样。
可能出了什么问题?
谢谢!
最佳答案
关于soap - NetSuite- postman -休息- "Incorrect data center requested!",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64375964/