200 questions
1
vote
0
answers
39
views
How do I change a measurment unit in a Simscape custom block?
I'm trying to create a custom block in Simscape that convert energy from pressurized water into a torque. Here is my code:
component pelton_turbine
% Ce composant calcule le couple généré par l'eau ...
0
votes
1
answer
113
views
Razorpages - Custom 500 Error Page Not Displaying Even though 403 and 404 pages do
I am trying to implement the following custom error pages in ASP.NET Razor Pages (.Net 8.0):
403 Forbidden
404 Not Found
500 Server Error
My error pages are RazorPages pages within a directory ...
0
votes
2
answers
127
views
Creating custom errors in makefile with variables
Ive spent some time reading the GNU make manpages, but cant seem to figure out if what Im trying to achieve is actually possible.
Basically I just want to pass variables into info( or error( - but ...
0
votes
0
answers
85
views
Asp.net core mvc error handling - how to display message prompt when throwing custom exception?
Is there anyway to direct custom exception from server side to be shown as prompt dialog in frontend?
I am using c# on backend code.
I tried to implement server-side global exception handling ...
0
votes
1
answer
43
views
Express default error handler not sending response
I am uloading image using multer and then compressing image using gm. While uploading image, I am checking for file type and if its not image, throwing err to global err handler for skipping image ...
0
votes
0
answers
1k
views
How can I access flash messages in Symfony's custom error controller? (Or at least pass information from normal controller to error controller))
I would like to access to flash message in custom framework.error_controller in Symfony (5.4).
I have a HomeController where I set this:
$request->getSession()->getFlashBag()->set('info','...
-1
votes
1
answer
722
views
Laravel: How to send custom error messages to client from API?
I have a Laravel API that returns JSON responses to the client. By default, Laravel sends error messages in a standard format, such as 422 Unprocessable Entity. However, I want to send custom error ...
0
votes
0
answers
120
views
Why does my express error handler not work with "fetch" or "xhr" requests?
I have an error-catching wrapper function
and a error-handling wrapper function for my route handlers:
function catchAsync(func) {
return function (res, req, next) {
func(req, res, next).catch((err) =&...
0
votes
1
answer
158
views
Approaches to handling multiple errors that may occur when multiple displayed Angular components are subscribed to a state
I have a principle issue where in my Angular application, I have three components where
Component #1: Displays a list of items
Component #2: Display a list of recently used items
Component #3: ...
0
votes
1
answer
296
views
add details to to HTTP response when eceiving HTTP requst
I have created a logic app to receive an http request and validate the content which is fine. But when I receive the 400 error message, it said only that it was expecting an integer but received a ...
1
vote
1
answer
231
views
Returning a df as NoneType after function is ran under except statement
I am having trouble with returning a DataFrame after some exception handling. What I'm doing is checking for a FileNotFoundError when reading in an excel file, if found then I am printing an error ...
-1
votes
1
answer
218
views
how to make your bot send what message the user send when an error happens
i was trying to code what to do when an error happens but i always get this when an error actually happen
error found by: gHoSt FaCe#xxxx, in: admins-chat, the message was: <Message id=...
0
votes
1
answer
52
views
How to handle globally parsing errors using GsonConverter
I am using RxJava, retrofit, GsonConverter factory. I need to handle errors while parsing retrofit responses globally. I tried to write custom parser but i can't access to response url to pass it to ...
0
votes
0
answers
349
views
ERR_HTTP_HEADERS_SENT erorr in express js
I was working on REST API in express
I wrote a custom error handler as below in my project
function errorHandler(err, req, res, next) {
if (res.headersSent) return next(err);
res.status(500);
res....
2
votes
0
answers
256
views
Spring boot @Transactional not calling my catch block
Why is the ConstraintViolationException catch block not executing below when I use @Transactional. It does when I remove @Transactional. I want it to execute so I can do some custom error handling. I ...
0
votes
2
answers
737
views
React UseFetch cannot retreive json data from error response
I am still quite new to React, I was trying to create some dynamic content and managing Errors with Usefetch.
getting data from 20x response codes is fine.
however when response code is error (40x, ...
1
vote
1
answer
3k
views
How to customize the error code and response body from Istio on AuthorizationPolicy deny?
When a request is denied the reply back is:
HTTP 403
RBAC: access denied
Is there any way of customising this error to have a different status code and reply body?
2
votes
0
answers
1k
views
Custom Error mode set to "RemoteOnly", debugging locally still shows custom error page
In two of our ASP.Net Web Applications, in the Web.Config file, we've set the Custom Error redirect to our custom error page, and set the mode to "RemoteOnly" so that when we debug locally ...
1
vote
1
answer
402
views
Why we get error when we add any tag in between <img/> tag in ReactJS?
I have added span tag in between the img tag so its giving an error Please Explain Why it is giving an error. What the exactly problem is...
<img src="any demo images here" alt="...
3
votes
2
answers
3k
views
How to properly set up ASP.NET web.config to show application specific, safe and user friendly asp.net error messages in edge cases
In our asp.net web page (.net 4.7.2) we use custom exception rendering logic which creates specific error pages for the user in global.asax.cs via:
Application_Error(object sender, EventArgs e)
This ...
3
votes
1
answer
1k
views
error handler is getting called twice angular http_interceptor
in my angular application I have a global error handler which handles all the error. also, I have http interceptor where I am trying to log the error when it happens. but, the http interceptor ...
-1
votes
1
answer
1k
views
Basic question to formatting custom error Messages
i needed some help understanding the best practice for this scenario.
I have a custom exception class I created that has 3 child classes.I was overriding the message to fit my need .
Now the child ...
3
votes
1
answer
1k
views
How to set the precedence for custom EndpointExceptionResolver in Spring web services
I am trying to add custom error handling for Spring SOAP web services (version: 3.0.8) as per the steps in the below ticket.
How to return custom SOAP Error from Spring Boot Endpoint Service?
Added ...
1
vote
0
answers
420
views
Unhandled promise rejection error in passport.authenticate() when using throw error
I am trying to send out the occurred authentification error as a Node.js/Express JSON response API.
My code:
console.log("LOGIN USER...");
try {
let errors = validationResult(req);
...
0
votes
1
answer
688
views
Custom error page 404/500 but getting a 500 Internal Server Error
I am trying to customize my 404/422/500 error pages and for some reason I get a blank page with a "500 Internal Server Error". However, in another project the code below works perfectly fine....