hitrov/oci-arm-host-capacity

When walking through creating a new instance, the data-binary field does not appear in any instance request

Closed this issue · 5 comments

As title. I found the /nnnn/instance request calls, but none of them have a data-binary parameter (nor do any of them appear red in the networking console). When copying the curl line, I get something like this:

curl 'https://iaas.eu-xxx.oraclecloud.com/xxx/instances/' -X OPTIONS -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'Access-Control-Request-Method: POST' -H 'Access-Control-Request-Headers: authorization,content-type,opc-request-id,x-content-sha256,x-date' -H 'Referer: https://cloud.oracle.com/' -H 'Origin: https://cloud.oracle.com' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' -H 'Sec-GPC: 1' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache'

This is blocking usage entirely. Did something change on Oracle's end?

hitrov commented

This is so-called pre-flight request (OPTIONS). You need POST instead

Same issue using the POST request.

curl 'https://iaas.eu-xxx.oraclecloud.com/xxx/instances/' -X POST -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0' -H 'Accept: */*' -H 'Accept-Language: en' -H 'Accept-Encoding: gzip, deflate, br' -H 'Referer: https://cloud.oracle.com/' -H 'content-type: application/json' -H 'authorization: Signature keyId="large-block-of-stuff-here",version="1",algorithm="rsa-sha256",headers="(request-target) host content-length accept-language content-type opc-request-id x-content-sha256 x-date",signature="more-stuff-here"' -H 'opc-request-id: csidnnnnn' -H 'x-content-sha256: hash-here' -H 'x-date: Sat, 17 Jun 2023 13:59:25 GMT' -H 'Content-Length: 1461' -H 'Origin: https://cloud.oracle.com' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' -H 'Sec-GPC: 1' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache'
hitrov commented

Request body is missing in your message. Try different browser

Very unusual. Firefox doesn't show the payload at all, but Chromium-based browsers do.

same error using chrome as well as edge. The payload data isn't copied in the curl request. Got them from the payload tab in the developer tools itself.
image