- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
I was having the same issue and I contacted Amazon support about it.
They just replied to me and let me know that, at least in my case, the duplicate header was the "Host" header.
The library I was using manually added the Host header, but the underlying HTTP Client library it was using was also specifying a host header.
Upon removing that host header, the problem was resolved.
One of our developers fixed this. It had to do with the way Oracle RDBMS was creating the headers.
It looks like we are having the same issue. Do you have any information about what your developer did to fix it? It would be very appreciated!
Running into the same issue. If you can share what you found, it would be much appreciated.
We're also experiencing this. The code hasn't changed for years, and suddenly throwing this error for more than half of the requests.
If anyone can help me to fix it i will be grateful.
Oracle APEX running on Autonomous Database Free Tier
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
Hey Jesse, thank you for replying. If you are using Alexandria Library [ORACLE PL/SQL], I will be sooo grateful if you can show me where was it manually adding the host header. I need to fix it on mine.
Thanks so much Jess,
Jack - If you search for l_header_names(1) := 'Host'; (it is in numerous places) and comment out those lines and reindex the remaining headers it addresses the issue. e.g. under put object:
/* l_header_names.extend; l_header_names(1) := 'Host'; l_header_values.extend; l_header_values(1) := get_host(p_bucket_name); */ l_header_names.extend; l_header_names(1) := 'Date'; l_header_values.extend; l_header_values(1) := l_date_str;
l_header_names.extend; l_header_names(2) := 'Authorization'; l_header_values.extend; l_header_values(2) := l_auth_str;
l_header_names.extend; l_header_names(3) := 'Content-Type'; l_header_values.extend; l_header_values(3) := nvl(p_content_type, 'application/octet-stream');
l_header_names.extend; l_header_names(4) := 'Content-Length'; l_header_values.extend; l_header_values(4) := dbms_lob.getlength(p_object);
Blessed Gemma.
Thank you for helping me to find the problem. Commenting the lines hasn't worked, but i just changed the l_header_names(1) from Host to Host1 and it worked.
Thank you sooooooooo much, guys.
GitHub user is reporting the same fix: https://github.com/mortenbra/alexandria-plsql-utils/issues/83.
Hi, I'm sorry, the library I am using is not Oracle related at all, it's actually an old Erlang library and this was the fix: https://github.com/choptastic/erls3/blob/master/src/erls3server.erl#L377-L378