Questions tagged [httpexception]

HttpException or HTTPException are exception classes defined by various object oriented libraries that signal a problem during processing of a http request.

There is a HttpException in the System.Web namespace of .Net, another one in Apache Commons and a HTTPException in JAX-WS

160 questions
1
vote
1 answer

Laravel how to display all HTTP error codes in JSON?

As I create a REST API, I want all 404 and 403 errors displayed as JSON. When I try to return a message, the message is empty, but the error codes are usually displayed. Does anyone know what I'm doing wrong? I'm using PHP 8 and Laravel 9. use…
Tebyy
  • 53
  • 5
1
vote
0 answers

HTTP Error 509 when using urrlib to web scrape raw html code

I am trying to get the raw html code from thousands of urls of the same webpage. My code looks as follow: list_links = ['...'] # a list of urls of different articles of the same webpage dict_link_html = {link: [urllib.request.urlopen(link).read()]…
Gerrito
  • 29
  • 5
1
vote
2 answers

Raise instead a return

Can anybody help me to understand why not raise an HTTPException when the status is 200 instead a return ? working with fastApi A code as example: @app.delete("/delete") def delete(id = Query(...,description="Delete ID to be deleted")): if id…
Ragnar
  • 171
  • 3
  • 13
1
vote
1 answer

Jest: Matcher error: expected value must be a function

I'm using NestJS with Jest and getting Matcher error: expected value must be a function error when run following unit test. I have set invalid email in mockBody. Did I missed anything here? app.service.ts @Injectable() export class UserService { …
Johnny
  • 261
  • 7
  • 22
1
vote
0 answers

Connection closed before full header was received, uri = https://amazonS3UrlHere/img.jpeg

CachedNetworkImage( key: ValueKey('${widget.postImg}'), imageUrl: '${widget.postImg}', width: double.infinity, fit: BoxFit.cover, placeholder: (context, url) => imagePlaceholder(), ), All I have to show is a list of images in the App. I…
sithum dilanga
  • 427
  • 7
  • 14
1
vote
0 answers

Request timed out (System.Web.HttpException)

In periods we are experiencing many "Request timed out" exceptions (System.Web.HttpException) from a specific endpoint that is called often. It appears not to be related to high-peak periods and has been experienced right after deployment and at…
halvorsen
  • 411
  • 1
  • 6
  • 14
1
vote
1 answer

retrofit2.HttpException: HTTP 302 in Android

I am struggling with this issue hours a go I am trying to call the API using retrofit using this code interface HTTPService { @GET("/v1/breeds") suspend fun getbreeds():BreedList } class Retrofitclass { companion object{ val…
1
vote
0 answers

With Laravel I get the following error upon notification to the flutter application

I Created a form in my view form.blade.php file (resources/views/form.blade.php)

1
vote
1 answer

Flutter post request returns Unhandled Exception: HttpException: Connection closed before full header was received, uri

I'm facing some strange issue when try to make an http post request through HttpClient and through http package and for both I receive: [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: HttpException: Connection closed before full…
Alex.Marynovskyi
  • 1,264
  • 3
  • 16
  • 22
1
vote
2 answers

NestJS UseFilter not getting called when testing Service

I have a NestJS Controller: search.controller.ts import { Body, Controller, Post, Req, UseFilters } from '@nestjs/common'; import { HttpExceptionFilter } from '../exception/http-exception.filter'; import { SearchData } from…
Ankit Tanna
  • 1,779
  • 8
  • 32
  • 59
1
vote
0 answers

HTTP Error 413.1 - Request Entity Too Large The page was not displayed because the request entity is too large

When I tried to upload more than 50 MB of filesize the below error is getting displayed as there is a requirement of allowed Max file size is 50 MB and to show the user-friendly message in the application if the attached file size is more than 50…
Nanda kumar
  • 111
  • 4
  • 13
1
vote
4 answers

Imageview has no image when load at first time using Glide

I'm using the Glide v4 to load my images, and my app is encountering an error: I/Glide: Root cause (1 of 1) com.bumptech.glide.load.HttpException: Not Found at…
dotGitignore
  • 1,597
  • 2
  • 15
  • 34
1
vote
1 answer

Why does IIS return a 500 status code when the server times out?

We're running IIS7 & .net 4.0. When the server times out due to a long running request, the error page is shown, but the error code is just 500 rather than 408 or possibly 503 that I'm expecting. We want to show a different error page if it's a…
Glenn Slaven
  • 33,720
  • 26
  • 113
  • 165
1
vote
0 answers

Symfony \ Component \ HttpKernel \ Exception \ HttpException No message Laravel 5.6

The initial problem when I made an application using quickadminpanel.com (an Laravel admin builder panel) there I made two menus, namely the document menu and the competency menu. Then I download & install on the screen as usual. A few moments later…
1
vote
1 answer

C# (500) Internal Server Error overrides original exception

I am creating an API on C#. When I have an exception I try to send back a helping message, but "The remote server returned an error: (500) Internal Server Error." overrides the original one. The code on server side is this one string authHeader…
Grigoris Loukidis
  • 383
  • 2
  • 7
  • 23