Questions tagged [error-handling]

Programming language constructs designed to handle errors signaled by error codes, exceptions or other language specific means.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Why does the HTTP request not throw an error after its set Timeout

Some Preamble I'm writing a program that sends requests out to a webserver that is hosted on a device, if the device has a USB plugged into it then a webpage exists under the /USB endpoint and i can ...
Eric Olsen's user avatar
0 votes
0 answers
14 views

R - Error on one device only: Error in chol.default() : the leading minor of order is not positive definite, BVAR

I am estimating an BVAR model in R and get the following error: Error in chol.default(V_post) : the leading minor of order 1 is not positive definite Thats actually not the problem, since I work ...
Dun02's user avatar
  • 1
0 votes
1 answer
24 views

DB2/iSeries stored procedure error trapping SQL State

I have a stored procedure that is called from an unmonitored system and I need to trap all errors that occur. Currently, I can trap any errors that occur when the data is well formed, but not when ...
Kenneth McKinney's user avatar
1 vote
1 answer
23 views

Errorhandling arrays within obj

objName is an object that contains properties, some of which are arrays. I'm trying to check that the properties and elements of the obj are not undefined, null or have empty string. function ...
ClarSar's user avatar
  • 11
1 vote
2 answers
34 views

Python: Exception is gone after try/except block

I'm really sorry if I duplicated some thread, but I really couldn't find an answer. So, I have this little piece of code: exception = None updated_at = None test_str = "obviously wrong" for ...
Grzegorz Z.'s user avatar
0 votes
0 answers
15 views

Error scanning QR and get Info from It using Java

I have the following code: ReceiveQRFragment.java: package de.androidcrypto.nfchcendefemulator; import static android.content.Context.VIBRATOR_SERVICE; import android.Manifest; import android.content....
takis Paras's user avatar
0 votes
1 answer
19 views

Custom error handlig function to not catch errorcontrolled flow (with @)

I made my custom error and exception handler functions (in core file) and set them via: set_error_handler('custom_error_handler'); set_exception_handler('custom_exception_handler'); Elsewhere in my ...
BakirG's user avatar
  • 13
0 votes
1 answer
15 views

How can I assert error values in ballerina?

I have a error type as defined below, type ErrorDetails record {| string message; string reason; "HIGH"|"MEDUIM"|"LOW" severity; int code; record {} ...
Lakshan Weerasinghe's user avatar
0 votes
0 answers
27 views

Shiny for python equivalent of validate()

Normally to remove an error message that appears when there has been no input for Shiny in R you can use the validate() function, is there a way to remove this type of error message when using Shiny ...
idkkkkkkk's user avatar
0 votes
1 answer
14 views

Throwing custom error class results in instanceof Error instead of custom error class

I have made some specific error classes like NotFoundError, ConflictError and UnauthorizedError. There all extends a BaseError which is an extension of Nodejs' Error class. When throwing one of my ...
Thore's user avatar
  • 1,946
0 votes
0 answers
12 views

Suppress API 404 error from appearing in BizTalk console

I have a BizTalk app that calls an API from one of our suppliers. The orchestration receives a list of users and a list of subscriptions for that user. It then goes on to check whether the user exists,...
krabople's user avatar
-2 votes
0 answers
46 views

Infinite Loop Error Try Catch Java Character [closed]

import java.util.Scanner; public class NumCompare { public static void main(String[] args) { // Create and Declare Scanner input = new Scanner(System.in); int num1 = 0; ...
Ziaevo's user avatar
  • 9
0 votes
1 answer
41 views

My Ruby on Rails active record validation error does not persist when I re-render the same view

I'm using Rails 7 and Carrierwave to upload images. My image uploading is working as expected, but my issue is happening when I try to implement validation error message for an incorrect file type. In ...
Tony M's user avatar
  • 341
-1 votes
0 answers
67 views

Why the console shows this error: Uncaught TypeError: Cannot read properties of undefined (reading 'append')

Why the console shows this error: Uncaught TypeError: Cannot read properties of undefined (reading 'append') I am trying to do an addtoCart() function using vanilla Javascript but it keeps showing ...
Anjeza Xhelilaj's user avatar
0 votes
0 answers
7 views

About testing getting null pointer

I got this errror io.cucumber.core.gherkin.FeatureParserException: Failed to parse resource at: file:///C:/Users/jol///src/test/resources/features/US03/TC02.feature (1:2): expected: #EOF, #Language, #...
Yasin Akkaya's user avatar
0 votes
2 answers
41 views

Generate specific error code for missing function input

I have two functions similar to the following. The first detects if a variable is blank while the second will generate something that isn't relevant to this question. I want the second function to ...
Andrea's user avatar
  • 641
0 votes
1 answer
24 views

Seeking Guidance on Error Handling and Routing

I would like to request a review of my app.js file (Clone Project Bootcamp) to ensure that I have implemented error handling correctly. Below is the relevant portion of my app.js code: const express = ...
Miriam Sparbrod's user avatar
0 votes
0 answers
27 views

how to resolve A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction in android studio

I have just started a new android studio app and and tried to run but it is giving the following error Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A ...
M Baig's user avatar
  • 75
-4 votes
1 answer
55 views

fix sql query. i want print output in 1 row but in my query return 6 row i want combine as image

Query is SELECT unf_employee.employee_code,unf_employee.name AS Employee_Name, unf_attendances.payable_amount, unf_processed_salary_heads.type, unf_processed_salary_heads.name AS title, ...
Henil Code's user avatar
0 votes
0 answers
22 views

Custom GraphQL exceptions

I'm trying to create a custom exception when GraphQL throws its owns. The default GraphQL exception response I got is (except for the fillings): { "errors": [ { "...
cdelrey's user avatar
  • 13
0 votes
1 answer
10 views

How to truncate error message before get passed into tLogCatcher

I have a job that often failed originated from tRestClient (connecting to API) This normally generates an error message which is quite long (longer than 255 character) It seems to me the length of ...
Nanis Sn's user avatar
0 votes
0 answers
18 views

Angular 16 catch errors response from Django

i learning Angular and i have a standard login service in Angular 16.2.0 and backend with Django. I post login details all working fine but when i catch errors i get only get only generic errors, ...
Ionut Zapototchi's user avatar
-5 votes
1 answer
46 views

How to catch an error from instantiating a Type in Golang? [closed]

EDIT: although the example I gave was happening in main and hard coded, this was intended as a very simple example. In the real world, bad data might come in at any time and from a multitude of ...
John Horner's user avatar
0 votes
0 answers
12 views

How to fix the error in GML: non-planar polygon distance

I have validated the GML data in the CityDoctor. It found the error "GE_P_NON_PLANAR_POLYGON_DISTANCE_PLANE" in nearly all of the buildings. Is there a way to fix such an error? I tried to ...
Gülce's user avatar
  • 1
-2 votes
0 answers
7 views

Why does it show an error in console google?

When I write a program in vscod and want to see the answer in the console, google gives an error or error. I looked for answers to my answer in many places, but I couldn’t find it. How can I fix this. ...
Yura Hovhannisyan's user avatar
0 votes
1 answer
23 views

What to do about exceptions which don't fit your Expected error type? [closed]

Suppose I want to use the new std::expected<T, E> mechanism offered in C++23, with a function: using E = /* domain-specific error type regarding getting Foo's */ std::expected<Foo, E> ...
einpoklum's user avatar
  • 119k
0 votes
2 answers
23 views

Catch HTTP errors when using the Request module in Python3

I'm using the code below which works well, however if I get an error 404 the code following the code block below it starts throwing errors and doesn't work due to the error 404, so I would like to ...
AeroMaxx's user avatar
  • 207
0 votes
0 answers
22 views

Firebase Storage OnFailure Not Working with await. why?

I use firebase storage to download file like below. on succsess is working and downloads the data. But when there is an error, onFailurelistener not working. For example if i write the file path ...
Edip C.'s user avatar
0 votes
2 answers
52 views

How to print Error from a Result the right way

I'am trying to connect db to query data, I want to print the error instead of panicking here this is what I tried: let ConnectionResult = tokio_postgres::connect( "host=localhost user=...
duc's user avatar
  • 2,627
0 votes
0 answers
16 views

I cannot produce svg images with asymptote

I cannot compile asymptote code to output to svg. I have a minimal file settings.outformat="svg"; size(10cm); draw(unitsquare); in my test.asy file and when I compile it using asy test....
jfab's user avatar
  • 1
0 votes
0 answers
17 views

WordPress Missing Files + Log In Issues

I am working on a WordPress website for a client. They have the website hosted on IONOS and we are getting these frequent problems. There are files missing from time to time which causes to get a ...
Hristijan Stanojoski's user avatar
0 votes
1 answer
77 views

'This error originates from a subprocess, and is likely not a problem with pip'

I tried to install apex with my terminal and with torch.version = 1.13.1+cu117. I followed the commands and instructions but it did not work. I'm using Python 3.11 git clone https://github.com/NVIDIA/...
Azury's user avatar
  • 60
0 votes
1 answer
31 views

I am working on a project for quant analysis and I am unable to rectify this JSON error [closed]

Error: JSONDecodeError: Expecting value: line 1 column 1 (char 0) Code: import requests from secrets import IEX_CLOUD_API_TOKEN symbol='AAPL' url=f'https://sandbox.iexapis.com/stable/stock/{symbol}/...
Jarvis_at_your_service's user avatar
-1 votes
0 answers
32 views

Correct option not getting selected

In the code whatever choice i make the the passed variable it just selects 1 as the choosen one error as seen here even after i selected 2 it shows i selected option 1 Enter an Option (1/2/3): 2 ...
Aditya Yadav's user avatar
0 votes
0 answers
5 views

Converting gromacs to Amberfiles - ParmEd

I am finding this error when I'm trying to prepare amber files using gromacs files. Traceback (most recent call last): File "", line 2, in File "/ichec/packages/amber/18/lib/python2.7/...
user3638109's user avatar
0 votes
1 answer
61 views

I get error on sending email with laravel

I have a laravel app. I sent an email with the following configuration, MAIL_MAILER=sendmail MAIL_HOST=smtp.googlemail.com MAIL_PORT=587 MAIL_USERNAME=fa[email protected] MAIL_PASSWORD=*****...
fatemeh mansoori's user avatar
-3 votes
0 answers
50 views

couldn't get the expected output in c++

//program to convert a decimal into binary #include<iostream> #include<math.h> using namespace std; int main() { long a; cin>>a; int ans = 0; int i = 0; while(a &...
BARAKAM RUPAS BARAKAM RUPAS's user avatar
-1 votes
1 answer
38 views

Python: X marks the trail (2d list)

I've got a task to write code for this problem: You're familiar with the story of Hansel and Gretel, so when you decide to go exploring you always make sure to keep track of where you've come from. ...
Shark's user avatar
  • 3
0 votes
0 answers
21 views

How to fix "instagrapi" python library error?

I get outputted a "KeyError" and I don't what's provoking it My code: " from instagrapi import Client with open("credentials.txt", "r") as f: username, password ...
11chat's user avatar
  • 1
0 votes
1 answer
30 views

try and except errors in tkinter + Geo API call

I am trying to get an entry where the user should enter a city. After I get the city I call an API to get some details which I later use for other widgets and data wrangling. My problem is that I can'...
possibly_dehydrated's user avatar
0 votes
0 answers
31 views

Windows 10 - USBError: [Errno 13] Access denied (insufficient permissions)

I'm trying to access Logitech Meetup cam over usb, with python 3.11.4: import usb.core dev = usb.core.find(idVendor=0x046D, idProduct=0x0866) dev.set_configuration(0) and getting this error ...
Vlad's user avatar
  • 1
0 votes
0 answers
13 views

Wen Intel 82599 ixgbe(PF) driver loaded with VMs (sriov_numvfs>0) and ixgbevf (VF) is loaded on VM, encountering an AER on the PF results in VF hang

Why does the Intel 82599 driver (ixgbe, PF) exhibit a behavior where, when loaded with virtual machine/s (with sriov_numvfs>0) and the ixgbevf driver (VF) is loaded on those virtual machines, ...
user22514921's user avatar
0 votes
0 answers
33 views

Why null pointer exception was giving in jQuary section please give me brief explanation [duplicate]

this is the problem while I am hitting api it will give this error java.lang.NullPointerException: Cannot invoke "org.hibernate.metamodel.mapping.JdbcMapping.getJdbcValueBinder()" because &...
Bhoma Ram's user avatar
-3 votes
0 answers
34 views

how do I fix name "a_module" is not defined error? [closed]

I'm writing a python program to convert an audio file to a text file. I keep on getting an error message saying that a_module is not defined. Here's the testing audio pip install credentials import ...
Hannah's user avatar
  • 1
-1 votes
0 answers
25 views

How to install neural prophet package in python 3.11

When installing the neuralprophet package in my virtual environment using python 3.11, the terminal shows dependency conflicts. I have tried to change versions of numpy and tensorflow as well as ...
Freek19's user avatar
1 vote
0 answers
16 views

nodejs script freezes after a fixed number of caught errors

After 23 errors the script freezes in the catch block using repairjson module. Is there a way to clear a cache and reset a limitation somewhere? I tried setting the variable to null but it keeps ...
dirtyw0lf's user avatar
  • 1,808
0 votes
0 answers
20 views

I am trying to trigger the IndexError when practicing exceptions [duplicate]

I have a task I'm attempting to solve, I can't figure why I can't trigger the Index Error exception. The instructions are to print the value at the input index and print the values at the index before ...
jb963's user avatar
  • 1
0 votes
0 answers
93 views

Can't create a new react-native project using npx react-native@latest init

I am relatively new to react-native. and also recently decided to dual boot ubuntu alongside windows 10 on my laptop. whenever I create a project in windows using the command npx react-native init , ...
Place Holder's user avatar
0 votes
0 answers
13 views

an accident error for slice netcdf in Xarry

i had many nc files. so i merged them with this code GPMds = xr.open_mfdataset(r'C:\address\GPM\3B-MO.MS.MRG.3IMERG.*.nc4',combine = 'by_coords') then i tried to slice it by times` precipda = GPMds['...
alika's user avatar
  • 1
-1 votes
2 answers
67 views

Shell script raise error if any command fails

I have a shell script that runs several commands. I would like it to stop execution and rise some kind of error, that can be detected from outside, if any of these commands fails, similar to what ...
user171780's user avatar
  • 2,286

1
2 3 4 5
541