Questions tagged [error-handling]
Programming language constructs designed to handle errors signaled by error codes, exceptions or other language specific means.
24,719
questions
0
votes
0
answers
4
views
split vcf file by chromosome using bcftools
I have a 1000 genome vcf file and I need to split it based on chromosomes.
I am trying to use bcftools to split it but its gives an error.
The command used:
bcftools view -Oz -r 22 GTEx_Analysis_2017-...
0
votes
1
answer
9
views
Delete or ignore rows that have empty tables when using Table.ExpandTableColumn | Power Query
I need to expand a table column but some of the table contents are empty and return ""
when I run the query it stops at the first table where the content is empty.
I need to ignore these ...
0
votes
0
answers
20
views
How should I approach error handling in PHP? Specifically user input
I've been using PHP for quite a long time now, and I do enjoy it. However, it has come to my attention that my error handling is not up to scratch and for the new project I am working on, I want to ...
0
votes
0
answers
14
views
What is wrong with Android Studio
I have both installed dart and flutter and added them as environmental variables.
However, I cannot get rid of this red lines even when I perform the PUBGET i get this message:
Can anyone help me ...
0
votes
2
answers
26
views
How to "override" an exception in scala?
so I have a method which already has a try block that throws ExceptionA. Now I need to put another try block where this method is being called and needs to throw an exception with some added details. ...
-1
votes
1
answer
12
views
preflight request CORS issue in expressJS
In my express/react app I'm trying to force an error to give user feedback on the frontend but I do not get a response.
I'm sending a request to a path that 'does not exist' but is ends up here:
...
0
votes
0
answers
11
views
ImportError: cannot import name 'NNDescent'
This is the only line of code I'm trying to run:
import umap.umap_ as UMAP
These are the relevant packages: umap-learn-0.5.3, scipy-1.8.9, python- 3.10.4, numba -0.55.1, llvmlite -0.38.0.
I kept ...
-1
votes
0
answers
9
views
How to redirect to login page using service.js file of React app?
I have written this code:
export default class AuthService {
static getTwitterOauthToken() {
const url = `${apiUrl}/api/auth/getTwitterAuthToken?oauthCallback=${process.env....
0
votes
0
answers
11
views
Attribute Error with: "import umap.umap_ as UMAP"
Using jupyter lab with numba = 0.55.1 and umap learn = 0.5.2. Does it matter that umap has "pypi" as channel and numba doesn't? both in anaconda3. I've already tried several solutions shown ...
-3
votes
0
answers
19
views
Numba/Umap LoweringError: Failed in nopython mode pipeline (step: native lowering)
I posted this yesterday with my attempted solutions & still haven't been able to resolve this error. Anyone have any idea why? I tried what the commenter said too.
LoweringError: Failed in ...
1
vote
0
answers
5
views
length of 'dimnames' [1] not equal to array extent
I am new to using R and actually to most programming language, so I am a bit lost here. Hope you can help. I am using RCMap for whcih I have 4csv documents, I get the following error code:
Error in ...
0
votes
0
answers
6
views
Issue with make utility, receive CalledProcessError returned non-zero exit status 2
I had to install make to run some code in a conda environment that utilized make, though am receiving the CalledProcessError: Command 'make -C C:\Users\kayli\AppData\Local\bopen\elevation\Cache\SRTM1 ...
0
votes
0
answers
24
views
plot Lag effect, dlnm package in R
I examine temperature related mortality using dlnm package in R. I want to interpret lag effect at specific temperatures using this code: #crossbasis matrix
cb<-crossbasis(data$Temperature,lag=21,...
0
votes
1
answer
28
views
Error handling with "err" in C: What codes should I use?
The man page for err and errx states the following syntax:
void err(int eval, const char *fmt, ...);
void errx(int eval, const char *fmt, ...);
Obviously const char *fmt is the format string and ... ...
-3
votes
2
answers
26
views
404 NOT FOUND in Laravel v9.12.2 [closed]
I am creating a simple website in Laravel while running a web site ran into the problem with 404 NOT FOUND Laravel . edit-prod page when getting error of 404 NOT FOUND I don't know why is that. what ...
0
votes
1
answer
36
views
Hello, when i try to print from my class, i get this error:
Code:
class Passangers():
def __init__(self, passangerNames, nationalities, age, gender):
self.passangerNames = passangerNames
self.nationalities = nationalities
self.age ...
0
votes
0
answers
31
views
Symfony 5 - How to render page error 404 instead of the Symfony Exception page?
I'm trying to visualize an error 404 that isn't the Symfony Exception page.
Even when the site is in production mode, it doesn't render the default 404 error page:
I've tried to look into the ...
0
votes
4
answers
51
views
Find the reciprocal of an integer between 1 and 10
so I need to write a program that requests an integer from 1 through 10 and calculates its reciprocal.
while True:
try:
integer = int(input("Enter an integer between 1 to 10 "))
...
0
votes
0
answers
43
views
LoweringError: Failed in nopython mode pipeline (step: native lowering)
The following is the code I try to run. It used to work but I made changes to some installations (dont remember what unfortunately - scipy or scikit? my kmeans function also stopped working)
from umap ...
0
votes
0
answers
15
views
How should I add error handling to the constructURL function
I'm working on a project that is helping me to learn about JavaScript for an incoming internship that I have. In the constructURL function I'm using an if-else statement to help me adjust the URL for ...
1
vote
3
answers
40
views
How do I continue my Python script after a error
I'm trying to make my own OS using:
command = input('['+ location + ']$ ')
if command == 'exit':
break
elif command == 'open app':
try:
app = input('App Name: ')
except ...
-1
votes
1
answer
29
views
Statistical Tests in R
I want to run Bonferroni P Adjusted Value Test on a stacked data set.
This is my code:
stat.2 <- stack.2 %>%
group_by(modules) %>%
t_test(values ~ phenotype) %>%
adjust_pvalue(method = &...
-1
votes
3
answers
33
views
Getting Segmentation Fault error in C++ code
#include<bits/stdc++.h>
using namespace std;
//FIRST REPEATING ELEMENT (APPROACH 2)
int main()
{
cout<<"running";
int n;
cin>>n;
int arr[n];
for(int i=...
0
votes
0
answers
12
views
How To Add Error Handling To Flutter When Running Chewie Video Player
can anyone explain why flutter will at times crash and open a new tab in your editor highlighting some prebuilt flutter code, an example being when I implement Chewie video player
class ...
0
votes
1
answer
29
views
Creating an error message for an invalid input in python
I have been trying to create a program that creates a list from user input. The program is meant to give an error message to the user input when the length of the list is more or less than nine (9)
...
0
votes
0
answers
18
views
Running into an Error 1 on Mac trying to install Pygame
I'm trying to install Pygame. I keep getting the following error.
Resolved https://github.com/pygame/pygame.git to commit 3ce0b9ec80ba4f58cf640e3ea2b9ea188b35692a
Preparing metadata (setup.py) ... ...
0
votes
0
answers
33
views
Error on VBA during conversion from PDF to Doc file in MS Access
I am try to convert MS Access Report "Premier Practice" to PDF file "Premier Practice.pdf" than convert to Premier Practice.doc. Finally open Premier Practice.doc
I am getting ...
0
votes
1
answer
16
views
POST <APIURL> net::ERR_NAME_NOT_RESOLVED
I'm trying to create a simple web application form. It requires the user to input their information, and click submit which ideally would hit an api and store the information somewhere like dynamodb.
...
0
votes
1
answer
40
views
How can I call a subroutine after an error?
I'm working on user-proofing a VBA app in Excel and I realized I'm constantly rewriting a lot of the same code to create specific error messages that are fed strings of info for the user to be able to ...
-2
votes
1
answer
23
views
Xcode is damaged and refuse to run the code
When I press "Build" and/or "Run" buttons in Xcode (SwiftUI), it shows me an error and I get this message:
One of the paths in DEVELOPMENT_ASSET_PATHS does not exist: /Users/...
0
votes
0
answers
17
views
Powershell: handmade port scanner, -ErrorAction buggy? [duplicate]
I have to write a Port Scanner for school,
All look to work fine, but -ErrorAction Ignore doesnt work, errors are showing up.
function portScanner($xhost){
$range=1..1024
foreach($port in $...
-2
votes
0
answers
36
views
$ operator is invalid for atomic vector
I'm using rugarch::ugarchforecast to do a 1 step ahead rolling forecast. I keep getting the error message $ operator is invalid for atomic vector, but I'm not using the $ operator, nor am I using an ...
0
votes
0
answers
16
views
Python Sklearn: My project svm.SVC output error
enter image description hereinput:
from sklearn import svm
model = svm.SVC()
model.fit(X_train, y_train)
output: [SVC()]
0
votes
0
answers
10
views
Does the position of error handling middleware matter in express?
I was just curious since I thought it wouldn't matter where you place the middleware in your code as long as it's in the app/index.js
What I mean is this:
const express = require("express");
...
-1
votes
0
answers
5
views
Fabonacci series problem error handling num is not [duplicate]
function fibonacci(num) {
if(num < 2) {
return num;
}
else {
return fibonacci(num-1) + fibonacci(num - 2);
}
}
const nTerms = prompt('Enter thenumber of terms: ');
if(nTerms <=0) {
...
0
votes
2
answers
41
views
How do I add an error message to my stored procedure when 0 rows are affected?
I am trying to learn how to use transactions and error handling. Got stuck with custom error messages.
The stored procedure generates badges for AdventureWorks employees. The rule is for each employee ...
1
vote
2
answers
23
views
Setting a default for nosuchelementexception for multiple variables in python
So I am scrapping multiple rows of a table and many of them are either available or not for different pages. What I want to do is to detect which field is not available and supply it on a variable and ...
0
votes
0
answers
31
views
Why isn't my Laravel Nova error reporting to Sentry
In my app Handler.php I have this as per the Sentry docs
public function register()
{
$this->reportable(function (Throwable $e) {
if (app()->bound('sentry')) {
app('...
0
votes
0
answers
15
views
Vercel Failed to compile. React
first, I was getting the same error for react-icons. now I am getting errors for the typewriter. it works fine on localhost. when I'm trying to npm i typewriter getting this error:
also tried CI false ...
-1
votes
1
answer
24
views
Package Does Not Exist - ERROR (Java, Intellij) [closed]
enter image description here
I've suddenly received this error message and now have no idea what to do. I'm not sure what additional information to provide. If I've left out anything please let me ...
-2
votes
0
answers
26
views
Facing error as stated below. Need to understand more about the error and it's rectification
/Heyy Can you please help me understand what does this error actually means. Below I have given the error exactly as shown to me by the compiler/
In file included from /usr/include/c++/5/bits/...
0
votes
0
answers
11
views
Uncaught (in promise) Error apollo client
I am a new learner of graphql and I want someone to explain to me why I get this error thousnd of times I do not even know what it means here is the error :
Uncaught (in promise) Error: Missing ...
0
votes
0
answers
16
views
How to display stripe max amount limit error to user
I have done my one project in Laravel. I have used cashier package in it for payment. In my projects payments are done in multiple currency. Here I am stuck in one scenario where I want to display ...
0
votes
2
answers
29
views
Node js express error hanlding middleware dont recognize 4 elements
I'm trying to create an error-handling middleware, and as you can see in the image attached when I'm making the
app.use((err,req,res,next) => {...})
block my IDE is automatically recognized as 3 ...
-2
votes
0
answers
18
views
How to defining a custom error type in Go? [duplicate]
I defined a BizError which implements the error interface and code is as follows:
type BizError struct {
Code int32
Msg string
Err error
}
// implement error interface
func (bizErr *...
0
votes
0
answers
6
views
API-umbrella Install Error ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
Hi When I've installed Api-Umbrella by source code I got the Error messages like
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /OU=...
0
votes
0
answers
18
views
Apache Camel OnException based on external configuration
I'm implementing a camel route and my goal is to trap a specific exception.
Moreover, after redelivery policy is exausted, I want to move the message to a DLQ if an external configuration is set ...
-1
votes
0
answers
15
views
loop to find sum of elements of array in c but runtime error obtained. pls explain my mistake [closed]
#include <stdio.h>
int main(){
int n;
int sum=0;
int j[n];
scanf("%d",&n);
printf("%n");
for(int i=0;i<n;i++){
scanf("%d",&...
0
votes
0
answers
12
views
R - how to execute specific code after error
In my function myFunc() I want to execute specific code after error.
myFunc code:
if (x > 10) {y <- x
} else {y <- 0}
But I want myFunc to execute like bellow:
if (x > 10) {y <- x
} ...
-1
votes
1
answer
26
views
My try/except error handling doesn't stop when it should [closed]
I am doing an assignment for school where we are making photofilters. I am trying to get the user to input how much they want to brighten an image. The problem is that it doesn't jump out of the while ...