2,184 questions
0
votes
1
answer
66
views
ClientId Not Updating On Spotify's Web API Authorization Example
I wanted to get my hands dirty with Spotify's Web API, and it seems that the first thing I need to get a hang of is Authorization. So, I cloned Spotify's Web API Examples repository from github and ...
0
votes
0
answers
55
views
How to override the request host name in integration tests
I have a system that supports multiple simultaneous customer accounts for which I am trying to write integration tests. At present it extracts part of the request hostname in order to determine the ...
1
vote
0
answers
87
views
System.PlatformNotSupportedException: System.DirectoryServices.AccountManagement is not supported on this platform after updating .net 6 to .net 8
Getting error as below in windows server after updating .net 6 to .net 8:
System.PlatformNotSupportedException: System.DirectoryServices.AccountManagement is not supported on this platform
Did lots ...
0
votes
1
answer
62
views
Deployment troubles - Blazor WASM Client/Server/Shared setup
I have a problem with deployment of a Blazor WASM solution created in C#. It works perfectly when running in development, but I cannot get it to run after deployment to the web test server
My question ...
2
votes
0
answers
189
views
Scalar documentation - multiple response types for one endpoint
I'm learning Scalar instead of Swagger now, and i can not find out how to configure more than 1 common response types over all endpoints in project. I mean that, that i want to have endpoints which ...
2
votes
0
answers
49
views
Is it possible for pipeThrough and TransformStream to produce a byte stream?
The following code does not work. It produces the error Failed to execute 'getReader' on 'ReadableStream': Cannot use a BYOB reader with a non-byte stream Even though byteStream started out life as a ...
1
vote
0
answers
42
views
Is TypeScript incorrectly narrowing the type of the return value from ReadableStreamDefaultReader.read()?
Take the following TypeScript:
async function test(stream: ReadableStream<Uint8Array>) {
const reader = stream.getReader()
const { value, done } = await reader.read()
//typeof value =...
2
votes
1
answer
117
views
Angular | Why catchError does't catch 401 error?
Listen, I'll explain how it all happens.
I'm making a refresh system for a jwt token. It's a standard thing. I configured exactly two systems: guards and interceptors. That's why I'm sure people will ...
0
votes
1
answer
161
views
Not able to upload file on Autodesk forge server
I want to convert rvt file into ifc file. For that I am using autodesk forge API.
Firstly I have created app on autodesk and after that creating token with below code:-
const response = await
...
0
votes
1
answer
1k
views
How to preserve input data in n8n?
When calling some nodes in n8n, specifically this time, an HTTP node, input data is lost.
The most important lost property is the ID of the input, which is later needed to do merge.
How to keep input ...
0
votes
0
answers
197
views
Unable to create subdomain in cPanel – Error: (XID) The system failed to create the directory “” because of an error
I'm trying to create a new subdomain (e.g., api-test.domain.com) using cPanel, but I keep getting this error:
Error: (XID 6k7jjw) The system failed to create the directory “” because of an error:
Here'...
0
votes
0
answers
29
views
ASP.NET Razor Send HTTP Request via HttpClient and include JWT Auth Browser cookies
I have a WebApi and Razor frontend project (both using .Net 8.0). I'm trying to learn to implement authentication using JWT and cookies.
As of now it is working well:
Login on my razor website, which ...
1
vote
0
answers
186
views
How to use migration commands with Litestar?
I am trying to use migration commands with Litestar, but I keep encountering the error:
No such command 'database'.
I have configured my project with pyproject.toml, main.py, and models.user.py as ...
1
vote
1
answer
108
views
Generic C# API client service with common returns
I have a C# project that calls some APIs. These APIs are pretty different, and the answer differs for almost every call.
I wrote a generic client service:
public class HttpClientHelper
{
private ...
4
votes
1
answer
148
views
How can I preserve FileSystem API access to a directory between app launches?
I'm trying to port my existing SPA web app to Electron in order to make it a desktop app, working fully offline from executable. This app is meant to store user's data in file system (in a directory ...
0
votes
0
answers
78
views
What is the use case for navigator.keyboard.lock() / navigator.keyboard.unlock()?
I was looking through the MDN Web APIs, and I stumbled across navigator.keyboard. I could see a use for Keyboard.getLayoutMap(), with setting up controls for games, or fingerprinting, however, I ...
-1
votes
1
answer
207
views
How to create a file with contents using ADLS GEN2 API Using ADF
I need to create a file in ALDS GEN2 using WEB API activity in ADF.
Below is the request i am using to create a file.
{
"method": "PUT",
"headers": {
&...
1
vote
0
answers
13
views
Integrating GridDB Cloud WebAPI with Chart.js for Real-Time Data Visualization
I am developing a web-based dashboard to visualize IoT sensor data that I store in GridDB Cloud. I want to use the GridDB Cloud WebAPI to retrieve data and then render it with Chart.js. However, I am ...
3
votes
2
answers
337
views
Why can I not reuse the buffer I brought to the ReadableStreamBYOBReader?
Can someone explain the rational reading from a Web API (WHATWG) ReadableStream, using the BYOB (Bring Your Own Buffer) reader (ReadableStreamBYOBReader), why you cannot reuse your own buffer you ...
0
votes
1
answer
115
views
Power Automate POST HTTP action to send file in payload corrupts the file
I’m trying to use power automate to immediately send a file to a website when it is deposited in a sharepoint folder, retroengeniering its web API.
Here is the body of the request:
------...
0
votes
0
answers
50
views
Angular Reactive Form File Upload
I have this reactive form which contains an array of Formgroups. And in the field of these formgroups, there are form controls which I intend to have file uploads. Is this possible? I have seen file ...
-1
votes
1
answer
38
views
Types of HTTP Web Requests and their differences [duplicate]
I know that there are 5 types of HTTP Requests
GET: Used to read data
POST: Used to create data
PUT: Used to update data
PATCH: Used to update data
DELETE: Used to delete data
What is the difference ...
1
vote
1
answer
162
views
Trouble Connecting to IBKR Web API V1.0 with C# (403 Error)
Has anyone successfully connected to the IBKR Web API V1.0 using C#? Any working sample or insights into why this might be happening would be greatly appreciated.
(PS: I am not asking about TWS or ...
-1
votes
1
answer
222
views
How to Create a Empty File using ADF Web API Activity in ADLS GEN2
I need to create a new empty file in ALDS GEN2 using WEB API activity in ADF.
Below is the request i am using to create a file
{
"method": "PUT",
"headers": {
...
0
votes
0
answers
47
views
Dynatrace catches Newtonsoft JsonSerializationError
Our organization is using DynaTrace. DynaTrace is reporting a lot of Newtonsoft JsonSerialization errors.
Error converting (null) to System.Int32.
I have figured out what is causing this error so ...
0
votes
0
answers
89
views
ASP.NET Core Project Not Listing in Aspire Dashboard After Local Kubernetes Deployment
I have an ASP.NET Core project that contains two simple projects:
A Web API that returns weather data.
A Frontend that consumes this data from the API.
Everything works perfectly in the development ...
0
votes
1
answer
301
views
Minimal APIs in Blazor with RequireAuthorization() using Individual Account
In my .NET 8 Blazor project, I added the "Individual Account" to manage users. The application has 2 projects.
Server
The server side contains the login part and the controllers/endpoints.
...
0
votes
1
answer
211
views
Configure HttpClient in Blazor with Individual Identity
In my .NET 8 Blazor web application, I use the "Individual Account" to authenticate the users (so I'm using Microsoft Identity). I have a server and a client project. I have some endpoints ...
0
votes
0
answers
33
views
Is .Net Core WebAPI + .Net framework service combination leads delay in response?
we have .Net Core WebAPI calling .Net framework service for db using entity framework,
is this leads any functionality issues?
we are facing 503 issue if we hit APIs continuously to fetch so info.
...
1
vote
0
answers
173
views
Show the report generated with FastReport on React.js without iframe
I create reports with FastReport on the .NET Core WEB API side. I want to show these reports on our website using react.js. I normally convert the generated report to ByteArray and show it with a ...
0
votes
1
answer
115
views
How to Secure Protected Routes with JWT and Role-Based Authorization in ASP.NET Core?
I am currently working on implementing protected routes on a simple Web API.
But I can't seem to figure out how JWT works really. I am currently successfully creating and sending back the Token with:
...
0
votes
0
answers
25
views
Blazor WASM, Web API with downstream API
Downstream API is new to me, and I am not sure whether it is a good idea to use it between Blazor WASM and Web API instead of HttpClient.
Any opinion, please?
1
vote
0
answers
83
views
How to increase SignalR Timeout
I'm running a WebAPI project using Visual Studio 2022 and .net9. I also have a Blazor Web App which uses the API. There is a SignalR connection between the two. I keep getting timed out while ...
0
votes
1
answer
39
views
Use Static Methods inside another controller in C# web API
I'm trying to reuse a method which I've to use in multiple controller class.
What I've tried is to make a static method and use in my controller class which throws argument exceptions.
Is there any ...
1
vote
0
answers
37
views
Is there a way to dynamically get all WebAPI dom events and related types?
I want to get a list of all events like MouseEvent and related types, for example MouseEvent -> click, dblclick, mousedown, mouseenter, mouseleave, mousemove, mouseout, mouseover, or mouseup
And ...
1
vote
1
answer
48
views
Laravel AuthenticatedSessionControllerTest Fails with 404 for Login and Logout Tests
I am encountering an issue with testing the login and logout functionalities in my Laravel application. When I run the test suite, some tests fail with a 404 status code instead of the expected 401 or ...
0
votes
0
answers
413
views
How to use Notifications Web API
There is a basic example that shows how Notifications Web API works.
The example works well in Windows and Linux with Firefox/Chrome web browsers.
However, the example doesn't show any notifications ...
0
votes
0
answers
175
views
Could not load file or assembly 'Microsoft.UpdateServices.BaseApi' with the referenced "Microsoft.UpdateServices.Administration.dll"
I'm developing an "ASP.Net Core Web API" in Framework .Net 8.0 working with Microsoft WSUS, I have referenced the file :
C:\Program Files\Update Services\Api\Microsoft.UpdateServices....
0
votes
1
answer
68
views
Should the IDL definition of a callback throw an error if the return type does not match?
There is such a definition of IDL:
callback NavigationInterceptHandler = Promise<undefined> ();
This corresponds to the property of the handler argument passed to the intercept method of the ...
1
vote
1
answer
45
views
RetrieveDuplicates error after brackets in name
I try to find duplicates in CRM for given names per WEB API.
I use a API call like this:
https://orgname.crm.dynamics.com/api/data/v9.2/RetrieveDuplicates(BusinessEntity=@p1,MatchingEntityName=@p2,...
-1
votes
1
answer
49
views
Streaming webcam from mediadevice to videoelement and painting to canvas doesnt work on chromium browsers
Issue
I am using a videoelement that i have created with
document.createlement('video') i have not appended it to the DOM, since i dont want it visible anywhere, i just need it so i can stream my ...
0
votes
1
answer
77
views
API call in js to return image
I am working on js web app and it is my first time working on any js app. After calling an API web app is not showing any image on overlay screen but the API is returning an image.
Html code
<input ...
-1
votes
1
answer
372
views
MAUI project does not compile, in certains cases, when referencing objects from a normal .NET Class Library
I just started using MAUI. I want to have 3 projects:
The MAUI app (.NET Core 8)
A Shared class library (.NET Core 8 Class Library)
A Web Api (.NET Core 8)
The Shared class library contains a class &...
0
votes
1
answer
46
views
validating JWT Bearer token
We have a method called from back office to validate a bearer JWT token by its string token
but I'm getting an error when validating.
It's showing this exception:
IDX10503: Signature validation failed....
0
votes
1
answer
69
views
get User from String bearer token
we have a method that validates token and takes the user from Bearer token, but this method is not authorized, so how we retrieve the User data from string token
private static bool ValidateToken(...
0
votes
0
answers
58
views
Webapi latency in production
Our webapi deployed as an Azure webapp is slow or experiencing performance issues in production. The same code runs faster on dev and staging slots. I understand that there may be places in the api ...
2
votes
1
answer
899
views
NSwag produces incorrect output for IFromFile in Minimal API when file parameter is wrapped in model class
I’m working on a .NET 8 Minimal API (web) project and using NSwag for generating Swagger documentation. I have an endpoint that accepts a file upload, and the file parameter is wrapped inside a model ...
0
votes
1
answer
680
views
AOT Chiseled version of .net sdk 9 not working
When I'm trying to build the following DockerFile for a WebAPI project running on Docker:
# This stage is used when running from VS in fast mode (Default for Debug configuration)
FROM mcr.microsoft....
-1
votes
1
answer
361
views
How to setup a beta versioning in Swagger endpoint?
In my WebApi project (c# and .net8) I successfully setup the following definition:
For version 1.0 I have these endpoints:
However for beta I wanna have something like: /beta/api/Auth/Logon.
Almost ...
0
votes
1
answer
213
views
Writing Keys on Web API C# on Visual Studio 2022
This seems to be simple and should be common but I'm not familiar with Visual Studio 2022, I've created a Web API, and this API needs some keys that usually I just write on the web.config/app.config ...