微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

NetSuite-邮递员-REST-“请求了错误的数据中心!”

如何解决NetSuite-邮递员-REST-“请求了错误的数据中心!”

我正在使用Postman连接到NetSuite,并且已完成所有设置和授权。 当我尝试对示例模板使用GET方法时,请求返回状态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设置与公司URL设置相同:

Company URL

PostMan Setup

我已经看到过类似的其他情况,并且所有答复都与我在公司网址中获取地址有关。

有什么问题吗?

谢谢!

解决方法

实际上,我的邮递员设置中有一些错误:

Account_ID应该完全这样输入,用大写字母表示: enter image description here

但是公司URL和Rest Services应该保持这样: enter image description here

对我有用。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。