Quantcast
Browsing all 3619 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Jasper Report with RestAPI

I have a report on JasperServer(5.6) which accepts few parameters. I edit few settings on the Output Options tab and enter emails which i would like to sent to on Notifications tab. The report gets...

View Article


Is using a verb in URL fundamentally incompatible with REST?

So let's say we have something that does not seem best represented as a resource (status of process that we want to pause, stateless calculation we want to perform on the server, etc).If in API design...

View Article


Getting User authority error (_ERR_USER_AUTHORITY) on handler databean...

I have created a REST handler which was mapped to a data bean.And I am calling the databean using this method executeConfigBasedBeanWithContext(dataBeanName, profileName, responseFormat,...

View Article

Postgres(t) compression of huge json data for clients fetch call

I am using a Postgres DB to store large JSON data (~2 MB). To view and analyze the data (logfiles from different applications), I have implemented a web server with an Ag-Grid table. Based on...

View Article

Response status code does not indicate success: 415 (Unsupported Media Type)

I am trying to a refresh on a single table in Azure Analysis services using PowerShell and Automation Runbook.I am passing a bearer token to the header body but while testing it I am getting below...

View Article


.NET API to run Powershell scripts [closed]

I am not sure how to approach on this, I am looking for any reference or hint to create REST API using C#.NET that will run Powershell script saved in .PS1 file and return JSON media type. I have...

View Article

Session expired or invalid on using access token

I have created a connected app in which I have selected the OAuth Scopes "Access and manage your data (api)" and "Full access (full)" through the consumer key and consumer secret that was available in...

View Article

Ktor(client side) not authorizing JWT Token

Using ktor for client side.fun main() { runBlocking { val client = HttpClient(Java) { install(ContentNegotiation) { json(Json { prettyPrint = true isLenient = true ignoreUnknownKeys = true }) } } val...

View Article


Parameter value [\] did not match expected type [java.lang.Long (n/a)]

Below is code from my service class and controller classpublic void updateRecord(long number, String data) throws RecordAlreadyExistsException, NumberNotPresentException { boolean recordExists =...

View Article


How do I log response in Spring RestTemplate?

I am using RestTemplate to make calls to a web service.String userId = restTemplate.getForObject(createUserUrl, String.class);If this fails to return a user ID I just get returned null but I don't know...

View Article

Securing a API consumed by AJAX

I have a REST JSON API (built in .NET) that needs to be consumed by the following clients (over HTTPS):SPA website (AJAX)Mobile applicationsEverything (API, SPA website, mobile apps) is...

View Article

Security and API implementation - REST

I'm implementing an API using Django. One 1 service should be able to access one API URL.I am wondering if there are any popular security practices that go beyond using username/password and SSL?Is...

View Article

Spring @RestController public entry points cannot be reached after upgrade to...

We have upgraded our Spring-boot Java application with JDK 17 together with Spring-boot latest version. that's also included upgrading all of our external dependencies in order to clean up any...

View Article


Getting 502 Bad Gataway after a service call in my app

I have seen there are similar post but actually I do not know how to analyze this problem to understand real cause. I have a cloud app working in a cluster and I am calling an Rest service. As a result...

View Article

Image may be NSFW.
Clik here to view.

try to fix SonarQube bug - A "NullPointerException" could be thrown

I am facing one strange Sonar issue - A "NullPointerException" could be thrown.Below is my service implementation class. emailNotificationServiceClient is FeignClient Interface which works fine. try {...

View Article


Can't verify CSRF token authenticity! RAILS API with POST

I trying post a json file with Rails API.I have try to fix but can't runThis my problem:Sever log:Started POST "/students/" for 127.0.0.1 at 2016-09-17 17:45:33 +0700 ActiveRecord::SchemaMigration Load...

View Article

Flatten DRF's nested serializer

I have two models for each user, a User model and a Profile model.class User(BaseModel, AbstractUser): username = None image = models.CharField(max_length=300, blank=True, null=True) email =...

View Article


Image may be NSFW.
Clik here to view.

Error: http.Server.listen() was called more than once which is not allowed....

I am trying to deploy my app or API on shared hosting, but I keep on encountering an error that says Error: http.Server.listen() was called more than once which is not allowed.I have no idea why this...

View Article

How to handle API parameter validation? [closed]

I'm using SvelteKit with the Node.js adapter and Typescript connecting to an Azure SQL instance.Assuming I have the following route/api/thingsI want this endpoint to support the following...

View Article

How automatically getting token in Postman

I use the Postman desktop app for web API testing. I have a lot of controllers and for each need a token. First I get Bearer token and then copy it to other requests. This token have limit time. Can I...

View Article
Browsing all 3619 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>