POST ( url ) 500 (Internal Server Error) CodeIgniter 4 ajax - ajax

500 (Internal Server Error) for for ajax
enter image description here
hi. i have got jquery.min.js:2 POST ( url ) 500 (Internal Server Error) for for ajax request but direct url return data, i try it many ways but server error log also not showing any arrors.
pleas give me solution thanks.
.htaccess

Related

after post request http respond is 404 not found error in Postman

https://github.com/smollini/youtube-clone1
Backend is starting without any issues, but after sending post request i get 404 not found respond please help.
Postman screen

Jmeter Response 500 internal server error for request

HI everyone I need a help regarding to fix the 500 internal server error
Please check my below attached requests and correlation and response image
Please tell me if I was wrong in anywhere I keep trying to do the scripts to run and the result was 500 error.
Redirect request:
Https request1:
Data correlation:
Passing parameters:
Sending request details:
Response message:
Looking into Content-Type header of your request it appears that you should be sending a JSON while you're sending parameters in form of name-value pairs
I think you should switch to Body Data tab in the HTTP Request sampler and put your parameters there like:
Also double check your API contract, it might be the case you need to change the method to POST
More information: REST API Testing - How to Do it Right

Laravel MethodNotAllowedHttpException if request has base64 image data

I've a problem when I'm sending HTTP request containing base64 image data it throws " MethodNotAllowedHttpException ", but if the request doesn't contain a base64 data it works fine.
PS: the same request works on my localhost, but not working on my shared web hosting.
example of the request :
https://prnt.sc/jjybgw
It's problem of the post request method.
when you send the get request and route define of post request. Than occurred this issue
First check your form request URL
And also check in web.php
Route::get()
Or
Route::post()

Https requests from Racket net/url

I'm trying to pull data from a URL in Racket using
(html->xexp (get-pure-port (string->url url)))
However, when url is an https, I get an error along the lines of
ssl-connect: connect failed (error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error)
What else do I need to be doing to handle https?

server response ajax request angular

first Ill comment my config in server
i have a apache with my html page with angular in 80 port
and other web server in port 4000 listening like a API
i am trying to make a $http request to my server but don't succes, just error message, this is my code
$http.post('http://localhost:4000/tareas', {msg:'asd'}).
success(function(data, status) {
alert('funciono');
}).
error(function(data, status) {
alert('error');
});
my server receive that request because i send a message when a controller is accesed, so the request connect with my API, but always execute the error my request in angular, even with $http.jsonp, that send me the error alert, my server return a simple json.
{data:'hurra.!', status:200}
i need a different response from my server to success?
even with F12 and neetwork, i see the request "canceled" with get and post, but my server send the message so i receive that request. with jsonp, chromium don't say a thin, everything is ok, but the $http.json still send me to error, is because my server response?
thanks to all.
well, searching more i find that cross domain request need "callback=JSON_CALLBACK" in the url and do a jsonp request, so changing my code to
$http.jsonp('http://localhost:4000/tareas?callback=JSON_CALLBACK'}).
success(function(data, status) {
alert('funciono');
}).
error(function(data, status) {
alert('error');
});
do the work and my ajax request now success... i find this in other tread, i put here the link for more info.
parsing JSONP $http.jsonp() response in angular.js
thanks

Resources