API Returning status code 307 Temporary Redirect

Using the testnet API making a market buy order (POST request to /api/v3/order) returns the following error code:

statusCode: 307,

error: ‘\r\n’ +
‘307 Temporary Redirect\r\n’ +
‘\r\n’ +

307 Temporary Redirect

\r\n’ +

CloudFront\r\n’ +
‘\r\n’ +
‘\r\n’,

I am able to successfully access other endpoints such as /openOrders and /account but posing a order is returning this strange error.

My request:

const binanceConfig = {
  API_KEY: 'redacted',
  API_SECRET:
    'redacted',
  HOST_URL: 'http://testnet.binance.vision',
};

const buildSign = (data, config) => {
  return crypto
    .createHmac('sha256', config.API_SECRET)
    .update(data)
    .digest('hex');
};

const privateRequest = async (data, endPoint, type) => {
  const dataQueryString = qs.stringify(data);
  const signature = buildSign(dataQueryString, binanceConfig);
  const requestConfig = {
    method: type,
    url:
      binanceConfig.HOST_URL +
      endPoint +
      '?' +
      dataQueryString +
      '&signature=' +
      signature,
    headers: {
      'X-MBX-APIKEY': binanceConfig.API_KEY,
      'Content-Type': 'application/json',
    },
  };

  try {
    console.log('URL: ', requestConfig.url);
    const response = await rp(requestConfig);
    return JSON.parse(response);
  } catch (err) {
    console.log(err);
    return err;
  }
};

const data = {
      symbol: 'BNBUSDT',
      side: 'BUY',
      type: 'MARKET',
      quoteOrderQty: 1000,
      recvWindow: 20000,
      timestamp: Date.now(),
      timeInForce: 'GTC'
    };

privateRequest(data, '/api/v3/order', 'POST' );

Hi. Testnet now looks fine and I couldn’t reproduce the same error as you faced. But when placing a market order, timeInForce is not required.
For these parameter, the server should return the error like:
{
“code”: -1106,
“msg”: “Parameter ‘timeInForce’ sent when not required.”
}
Once you remove that extra parameter, it should work. Please try it again on the testnet.