bigskysoftware / htmx

</> htmx - high power tools for HTML
https://htmx.org
Other
38.61k stars 1.31k forks source link

Ajax requests fail on version 2.0.3 #3025

Closed alexballas closed 1 week ago

alexballas commented 1 week ago

Hello,

When I run the following in the console, it works on version 2.0.2 and lower but not 2.0.3

2.0.2:

htmx.ajax("POST", "/test", { values: "test", swap: 'none' });
htmx.org@2.0.2:1 Response Status Error Code 405 from /test

2.0.3:

htmx.ajax("POST", "/test", { values: "test", swap: 'none' });
htmx.org@2.0.3:1 htmx:targetError
C   @   htmx.org@2.0.3:1
de  @   htmx.org@2.0.3:1
fe  @   htmx.org@2.0.3:1
he  @   htmx.org@2.0.3:1
Rn  @   htmx.org@2.0.3:1
(anonymous) @   VM1929:1
Promise {<rejected>: undefined}
[[Prototype]]
: 
Promise
[[PromiseState]]
: 
"rejected"
[[PromiseResult]]
: 
undefined
htmx.org@2.0.3:1 Uncaught (in promise) undefined
oe  @   htmx.org@2.0.3:1
he  @   htmx.org@2.0.3:1
Rn  @   htmx.org@2.0.3:1
(anonymous) @   VM1929:1


Let me know if you need more details.

MichaelWest22 commented 1 week ago

Yes this is a known issue that should be fixed in the next release

see #2945

alexballas commented 1 week ago

Thank you! Closing