66 questions
0
votes
1
answer
532
views
Issue with OpenAPI Generated Python Client Handling 204 No Content Responses
I'm encountering an issue with a Python client generated from an OpenAPI specification using the openapitools/openapi-generator-cli tool. The problem arises when making a GET request to an endpoint ...
1
vote
2
answers
204
views
Check if awaited IActionResult returns a 204
The method below returns a 204 if completed successfully, but I'm having trouble checking the status code. It's an IActionResult, in Postman it returns an empty body with a status code of 204.
...
0
votes
1
answer
66
views
getting options 204 while using cloudinary api resources
I am using cloudinary to fetch my images and everything works fine but it sends a 204 preflight res when using cloudinary and when i remove cloudinary logic it works normal.
login Controller
const ...
1
vote
1
answer
643
views
Karate - How to set HTTP status to variable from When step?
I'm calling a rest service through Karate API with DELETE method. When the service is executed, I am getting HTTP status 204 which is expected.
When method DELETE
Then status 204
Test is passing, but ...
2
votes
1
answer
6k
views
ASP.NET Core Web API - Return a string message with a NoContent Response?
I have some records in the database that may or may not have some information for a certain column, and that's OK.
If a consumer of the endpoint runs into one of these records, I'd like to return &...
0
votes
1
answer
2k
views
Node HTTP server hangs when sending 204 - NO CONTENT response
I'm having an issue wherein sending a response with a 204 - NO CONTENT status code via my NodeJS HTTP server causes the response to hang indefinitely, timing out the initiating request.
response....
0
votes
1
answer
1k
views
Rails 6 - on a POST is it safe to rely on 204 (No Content) to let Jquery update the same page while a record is created in background?
Background: in Rails 5+, a POST route without an associated View now simply returns a 204 status code to the browser (instead of raising a ActionView::MissingTemplate exception as done before Rails 5)....
0
votes
1
answer
492
views
What's the appropriate Response Code for a Pagination API using a GET Request with page parameters, where the parameters produce no records?
I have developed a Web Interface for a db. The db and Web Interface are for my own use in my hobby running on my private intranet. Currently the db has 1800+ records which is going to increase with ...
0
votes
1
answer
851
views
Can a POST request be redirected as another GET request
I am working on a react application, where there is a need to send the object parameters inside a body because of confidentiality. So I am making a POST request from the react app client-side to the ...
3
votes
0
answers
3k
views
Axios doesn't resolve/reject promise on status code 204
I'm calling a private REST API with axios as http-client.
If I'm calling an endpoint which should respond some information about an object I get an response (status code 200, payload containing the ...
1
vote
0
answers
180
views
Google scripts, using urlFetchApp() for PUT request, I cannot get a response code when server sends 204 no content response
For GET and POST requests for a private server I work with I use in Google Sheets, do something like this, and I get a proper response. I use that response to update data and just as importantly for ...
0
votes
1
answer
391
views
sending the same request multiple times in a raw. some return with status code 204 and some are ok
I'm sending a post request to the same url multiple times in a row. Some of the requests return 200 status code and some return 204 saying no content. the request updates some content in a mongo ...
2
votes
0
answers
2k
views
Google docs viewer returning blank screen (204 response) sometimes
We use Google doc viewer to view pdf files which sometimes responds back with 204 - an untitled document. After a page refresh the content gets loaded. We have tried to add embed tags which doesn’t ...
0
votes
1
answer
803
views
How do I check status code 204 (NO CONTENT) in Volley JSONObject request Android
Looked around but couldn't find solution to this.
Checking status code via following code:
JsonObjectRequest req = new JsonObjectRequest(URL, null,
response -> {
...
0
votes
1
answer
616
views
REST api: best practices in case of no content
I'm pretty familiar with rest apis, but today I was asked this:
"what if a resource exists but it's content have been blocked for some reason?"
example:
try to retrieve users/18 but user with id 18 ...
2
votes
1
answer
8k
views
Return http-status-code 200 or 204 if no content found to process
In web-API client made a get request with a parameter, to process something and get data from the file system.
The parameter requested through the API a folder path.
If API found that path, it is ...
9
votes
2
answers
7k
views
Normal to see Status 204 then Status 200?
I am looking at my ajax request in network tab in chrome and I noticed every ajax request I do happens twice.
First one is a 204 and then followed up with 200. My ajax call is only being hit once so ...
3
votes
1
answer
2k
views
HTTP 204 leads to download in Chrome
when I try to Respond with on HTTP 204 Status, my Chrome browser is starting an Download that fails.
Request:
Request URL: https://dummy.page/dummyRequest
Request Method: GET
Status Code: ...
0
votes
1
answer
289
views
iOS devices with browsers such as Chrome can't handle a 204 response. For my Flask app, what alternatives do I have?
I noticed that my Flask app when accessed via Chrome on an iOS device cannot handle an empty response, return 204, correctly. It redirects to a blank page. The intention (as it works on Android and a ...
0
votes
0
answers
534
views
Scrapy Response 204 No-Content
I have a scrapy spider which was working as expected for a while, but now returning empty response.
class BossSpider(scrapy.Spider):
name = 'bossaz'
allowed_domains = ['boss.az']
...
2
votes
1
answer
4k
views
Why do I get a "Invalid JSON" when Status Code 204?
I don't know if it is intended or not. But when I use a Reponse Code 204 in my Controller I get "Invalid JSON was returned from the route" in PHPunit.
But if I change the Response Code to 201, ...
4
votes
1
answer
7k
views
No Content in Spring Boot Rest
How do I configure Spring Boot to return 204 in GET methods (typically findAll methods) when the method does not fetch records? I would not like to do treatment in each method, type the code below:
...
2
votes
0
answers
2k
views
Warning: Couldn't read data from file
When i try to do an HTTP PUT request to upload a data file .img on image OpenStack like this:
curl -i -X PUT -H "X-Auth-Token: $Token" -H "Content-Type: application/octet-stream" -d "@/home/nic/...
0
votes
1
answer
2k
views
Rails 5 204 No Content
No template found for ChefsController#create, rendering head :no_content
Completed 204 No Content
This is an issue in Rails 5 that helps with APIs
I've seen this post and several others but I am ...
0
votes
1
answer
268
views
How does browser caching handle hotlinked images + 204 responses?
I've seen a few conflicting answers across the net and I'm trying to understand this at a fundamental level. Say I have an image hotlinked (yes, with permission) on my site:
<img src="...