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

对我有用。