Questions tagged [http-status-code-401]

Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource.

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

POST https://mainnet.infura.io/v3/27e484dcd9e3efcfd25a83a78777cdf1 401

When Connect Wallet to my Dapp i got continuosly POST request like this: "POST https://mainnet.infura.io/v3/27e484dcd9e3efcfd25a83a78777cdf1 401", how can i handle this? I'm working with ...
user avatar
  • 1
-1votes
1answer
35views

Getting 401 from Netsuite REST API

I'm following this tutorial here to attempt to authenticate using Token Based Authentication with Netsuite: through postman using Netsuite's Postman environment, but I continue to receive "401 ...
user avatar
0votes
0answers
16views

Node js if status of http post request is 401 then execute another post request

I have the below https post request, which is very simple. The code works as expected when using an active token. when using an expired token it receives a 401 error. This is ok. I would like to run a ...
user avatar
  • 1
0votes
0answers
9views

Ajax jQuery net_ERROR aborted 401 unauthorised issue

Trying to consume Mule API by using ajax/jquery but always getting 401 unauthorized issue and when i used same credentials with postman in that case response are coming. Any suggestion would be ...
user avatar
  • 1
0votes
0answers
33views

Azure DevOps: 401 - Uh-oh, you do not have access

My apologies to ask this question again, I'm aware that it has been asked before, but the solutions to those question don't work for us. Some context When I invite users to either my organization or ...
user avatar
0votes
1answer
78views

Error The remote server returned an error: (401) Unauthorized

I am trying to get emails from my shared outlook exchange inbox, but unfortunately it is not working because of this error: The request failed. The remote server returned an error: (401) Unauthorized ...
user avatar
  • 787
0votes
1answer
21views

Trying to GET data from application with Vue and Axios

I'm trying to GET some data from our business server using a GET request with Vue and Axios. I encounter a 401 unauthorized error however. I'm able to GET this data with RESTED when I log in with my ...
user avatar
-1votes
0answers
44views

Error 401 unauthorized only appears in heroku api, works locally

I keep geting this error when i added token validation in the middleware in some routes. I'm using git oauth to generate the token. When i press the sign in with gituhub button, the normal way is to ...
user avatar
1vote
0answers
67views

Laravel Sanctum - 401 unauthorized on post request

my problem is that I have a project on Laravel 8 which is functioning as API endpoint for Vue SPA application. I have routes as here: Route::middleware('auth:sanctum')->group(function () { Route:...
user avatar
0votes
1answer
25views

ASP.NET Core MVC return Forbid/403 is backwards? [duplicate]

REOPEN THIS Someone marked this as duplicate for 403 Forbidden vs 401 Unauthorized HTTP responses but that doesn't answer my question. I know what the 2 codes are SUPPOSED to be. What I'm asking is ...
user avatar
0votes
0answers
24views

NuxtJS - Error 401 (Unauthorized) on localhost

I guys, I cannot find a way to fix this problem: I get a 401 error (unauthorized) when trying to get data from the API on localhost, we are using azure to hold both the API and the website in dev mode....
user avatar
0votes
1answer
49views

IIS Forms Authentication throws a 401 Error

We are currently setting up forms authentication for our web app. The plan is for users to be redirected to a login page on our main system when they want to access files. IIS Settings Setting the ...
user avatar
0votes
0answers
11views

Intercepting 401 error by MSAL during backend access

In my project we acquire a token via MSAL in the main java application and provide this token in lots of different calls to a library (aka backend client) that handles the actual backend communication....
user avatar
  • 11
0votes
1answer
109views

Azure Web App "You do not have permission to view this directory or page."

I have been following the documentation https://docs.microsoft.com/en-us/azure/app-service/scenario-secure-app-access-microsoft-graph-as-user?tabs=azure-resource-explorer%2Cprogramming-language-csharp ...
user avatar
0votes
0answers
77views

Error 401 when trying to post data with Tweepy

I've come across an error 401 when trying to update status from the tweepy API using Python. I've tried following multiple tutorials and blog posts with similar errors, but nothing seems to be working....
user avatar
0votes
0answers
20views

Why does a 401 response trigger this htaccess rule

Here is the htaccess in the root of the site (simplified) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L] ...
user avatar
  • 111
0votes
2answers
22views

getting 401 response codes on a deployed React App that worked fine in development?

I am trying to complete a Redux project and got everything to work fine in development on my own machine but when deployed, the browser is failing to recognise my hidden environment variables so not ...
user avatar
0votes
0answers
31views

Microsoft Graph 401 Unauthorized

I have an 401 Unauthorized when I try to make a post request. The problem is that it's working using the Graph Explorer but I have this error using the access token given by this method: let ...
user avatar
1vote
1answer
182views

Spring Boot no default 401 JSON response on latest version but works on older [duplicate]

Spring Boot version 2.6.3 appears to no longer send the default JSON responses with 401 codes and some others responses. @Override public void commence(HttpServletRequest httpServletRequest, ...
user avatar
  • 13
0votes
0answers
32views

How can I solve 401 error on image render?

I'm getting a 401 error when I want to show an image. I'm using an API that returns data related to images (description, size, etc.). Previously I use an API that gives me a token which I use in the ...
user avatar
-1votes
1answer
22views

Basic Auth / JWT Token, removing Basic Auth popup

I use the combination of basic auth and spring security (JWT token) (Springboot) I have the following setup: web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns=&...
user avatar
  • 259
0votes
0answers
22views

RapidAPI Test Endpoint results in 401

I'm trying to test this GraphQL API but every time I try to test the endpoint, I get a 401 error. I've even tried passing in the host and key in custom headers and it still give me the same result. ...
user avatar
0votes
1answer
59views

How to implement SharePoint File Upload functionality in C# using this code?

I am trying to add SharePoint File Upload functionality to my C# MVC project. The following is my code: var sourceFilePath = @"Z:\itworked.txt"; var targetUrl = "/...
user avatar
  • 55
0votes
0answers
27views

Retry different failed requests with Axios

I'm a begginer and I'm having trouble to understeand how this works. I have to retry a call whenever a request returns some 4xx error. I have a redux file with actions that are responsable to make the ...
user avatar
  • 53
0votes
0answers
63views

How to get CSV file from URL with basic Auth using App Script?

I want to know if I'm missing something. I am using google's sample code from their Documentation: var username = "myUserName"; var password = "myPsw"; var url = "http://...
user avatar
1vote
0answers
23views

Exception: Request failed for https://rest.clicksend.com returned code 401 For sending outbound messages using google appscript [duplicate]

So I am trying to make a program using google Apps Script that could send outbound messages to the mobile numbers I have stored using google sheets. Also, the API that I have used for the triggering ...
user avatar
0votes
0answers
70views

GET method gives success but PUT method gives 401 despite same credentials

The problem Overview When getting products using a GET method everything works when trying to update a product using PUT method I get 401 unauthorized I use same credentials for both methods The ...
user avatar
  • 147
0votes
0answers
54views

Postman - 401 unauthorized status | Spring Boot

I prepared very simple REST APi. I am trying to do requests with postman but i get 401 Unauthorized. No matter what kind request it is. I have Windows 11 system, Java 11, Postman Version 9.8.2 Postman:...
user avatar
0votes
0answers
64views

ngrok - password protecting tunnel - 401 Unauthorized despite correct credentials

I'm exposing a Web App via ngrok, and trying to password protect the tunnel. Via Cmd, I'm able to run the command ngrok http -auth="username:password" 8080 but when I hit the generated ...
user avatar
0votes
0answers
61views

"401 Unauthorized" while rendering an image [duplicate]

I'm getting "401 Unauthorized" when I try to render or download images in a browser in product cards which is templated by EJS. I guess I should send an access token with GET request when I ...
user avatar
-1votes
3answers
112views

API calls with JWT authentication returns 401

I have a .NET 6 Web API application that uses JWT authentication. The front end is an angular application. When I make an API call with the bearer token in the header, it returns the 401 error code. ...
user avatar
  • 148
3votes
1answer
44views

How to prevent user to access images in multiple directories via the url

I am using .htaccess to prevent user to access images through url. Thanks to this question, I could prevent users to access .js files. RewriteEngine ON RewriteRule ^frontend/assets/(?:js) - [R=401,NC,...
user avatar
  • 517
2votes
1answer
55views

How to prevent user to access css files and images via the url

I am using .htaccess to prevent user to access files through url. The line RewriteRule ^frontend/assets/css/(.+) index [L,R] works fine. It prevents users to access css files. However, RewriteRule ^...
user avatar
  • 517
0votes
0answers
49views

Problem with authorisation when call firebase functions from web page

I faced a problem with my rest server that's deployed on firebase functions. When I make a GET request from postman it works fine and it gives me no problem at all. BUT when I call my endpoints from ...
user avatar
  • 153
0votes
1answer
141views

Angular Keycloak and Spring Boot 401 Error

I developed a couple of microservices in Spring Boot and secured them with Keycloak 15, I deployed the microservices onto an AWS EC2 instance in docker with an nginx reverse proxy with a letsencrypt ...
user avatar
0votes
1answer
25views

Are the http error codes in decimal format or hex?

Python ldap library throws exceptions with hex error codes like 52e for invalid credentials and 532 for password expired. Now I need to decide in what format (hex or dec) should I relay this ...
user avatar
-1votes
1answer
99views

Not able to send http Request with authorization header in my Azure function when deployed in Server

I have used HttpClient and I'm setting Authorization headers to it, when I run my Timer Trigger and HTTP trigger functions locally Everything is working fine and able to get the expected response, But,...
user avatar
  • 1
0votes
1answer
37views

Get location redirect url from jquery ajax statuscode 401

I currently have the below code and need to get the location parameter to redirect to. How do I grab it with the statusCode setup? Ajax Call $.ajax({ url: url, data: (...
user avatar
  • 22.6k
1vote
0answers
385views

Dispatch logout action from axios interceptor

Please let me know how to wrap the Axios interceptor to catch the api response for token expiry i.e 401 and call a dispatch action for logout from context, I would like to know how to call hooks ...
user avatar
0votes
1answer
61views

How can I troubleshoot a 401 error from MS Dataverse through R?

Yesterday I was using the following code to get data out of my MS Dataverse through R. It was working fine. require(httr) require(rvest) dataverse_api = oauth_endpoint(request = NULL, authorize = ...
user avatar
0votes
0answers
67views

Avoiding infinite loop because of API response in interceptor

I am developing Angular 6 application and there is one usecase in which I am stuck. I have following interceptor code intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent&...
user avatar
0votes
0answers
109views

ALB Target Health check failing with the status - "Health checks failed with these codes: [401]"

I am trying to figure out why my ALB Target Group is not passing the health check and throwing a 401 (Unauthorized) error. Details are: ALB Listener 443 forwarding to Target Group. AWS Linux RHEL 7.9 ...
user avatar
0votes
3answers
126views

How to resolve [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]

I am trying to Get, Delete and Post users' details. Postman I tried to send a request using Postman It showed 401 Unauthorized status. I have tried every possible solution but none of them worked. I ...
user avatar
0votes
0answers
33views

sonar qube is throwing vulnerablity issue for xss in authentication entrypoint

I am trying to override the standard error response in case of 401 in springboot using authenticationentrypoint in commence method I am building my custom error object which involves below line ...
user avatar
0votes
1answer
84views

Python Requests Returning 401 code on 'get' method

I'm working on a webscrape function that's going to be pulling HTML data from internal (non public) servers. I have a connection through a VPN and proxy server so when I ping any public site I get ...
user avatar
  • 69
0votes
1answer
72views

Google App Script API access, with OAuth idToken in android application

i'm trying to update google spreadsheet from android application. I found the flow for such operation should be: Send request from android App receive request at Google App Script modify spreadsheet ...
user avatar
0votes
2answers
148views

OKTA access token using token endpoint url returns http 401 error

I am new to OKTA. Using the below code to get the access token.. but getting 401 unauthorized error in this line inputBuff = new BufferedReader(new InputStreamReader(httpsClient.getInputStream())); ...
user avatar
  • 25
0votes
0answers
83views

jhipster registry/control center send management request to gateway application cause 401 unauthorized

I am using jhipster registry 7.0 and jhipster control center 0.5.0. When I am trying to load metrics from gateway application, it returns a 401 error { "type" : "https://www.jhipster....
user avatar
1vote
1answer
123views

jhipster microservices client springcloud config with authorization header to jhipster registry

I am using jhipster 7 with springboot 2.5.4 for microservice applications development (DEV env) I have setup jhipster registry server running on my localhost port 8761 with docker's help. I am trying ...
user avatar

15 30 50 per page
1
2 3 4 5
20