Nativescript Http getFile got response time out error - nativescript

When I used http.getFile to download video from url it returns response time out error.

Related

Received invalid pass data (A newer version of iOS is needed to read this pass)

I have implemented all 5 endpoints in Ruby On Rails and all seems working fine. But when I provide updated pass in response to web service Getting the Latest Version of a Pass(GET request to webServiceURL/version/passes/passTypeIdentifier/serialNumber) the pass is not updated and in error log I am receiving following error.
"log"=>{"logs"=>["[2023-02-20 13:19:41 +0530] Get pass task (pass type pass.com.staging, serial number basic_5628, if-modified-since (null); with web service url https://0407-152-57-190-212.in.ngrok.io/api) encountered error: Received invalid pass data (A newer version of iOS is needed to read this pass.)"]}
Also I am not sure what to pass in response to Getting the Latest Version of a Pass web service. Whether I should pass updated pass.json or raw file of pass.pkpass or downloadable format of pass.pkpass, because in Apple PassKit Web Service Reference guide its written like If request is authorized, returns HTTP status 200 with a payload of the pass data. So I am not sure what to pass as payload.
All my endpoints and entire code are in Ruby On Rails.
Sample Code:
send_data #pass.data.stream.string, type: 'application/vnd.apple.pkpass', disposition: 'attachment', filename: "pass.pkpass"
API Response Details:
Response Format Binary
Response Object pkpass

Getting 400 bad request when uploading attachment on Jmeter

I recorded uploading an attachment (pdf file) using blazemeter plugin, then open the jmx file using Jmeter. I modified uploads tab as in the following image and placed pdf file under bin directly. when i run the script i got 400 bad request , could you please advise what might be the issue?
As per 400 Bad Request status code description:
The HyperText Transfer Protocol (HTTP) 400 Bad Request response status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (for example, malformed request syntax, invalid request message framing, or deceptive request routing).
So I would recommend using a 3rd-party sniffer tool like Fiddler or Wireshark to capture the requests originating from JMeter and the real browser and compare them.
Requests must be exactly the same (apart from dynamic parameters which need to be correlated), once you amend your JMeter configuration so it will send the same request as the real browser does your file upload will be successful.
We cannot suggest anything meaningful unless we see successful and failing requests dumps fully (URL, headers and body)

Jmeter Response 500 internal server error for request

HI everyone I need a help regarding to fix the 500 internal server error
Please check my below attached requests and correlation and response image
Please tell me if I was wrong in anywhere I keep trying to do the scripts to run and the result was 500 error.
Redirect request:
Https request1:
Data correlation:
Passing parameters:
Sending request details:
Response message:
Looking into Content-Type header of your request it appears that you should be sending a JSON while you're sending parameters in form of name-value pairs
I think you should switch to Body Data tab in the HTTP Request sampler and put your parameters there like:
Also double check your API contract, it might be the case you need to change the method to POST
More information: REST API Testing - How to Do it Right

Sample Count: 1 Error Count: 1 Data type ("text"|"bin"|""): text Response code: 500 Response message: Server Error

I am getting error 500
When I am executing rest service uploading the *.bdc file in Jmeter.
While I am running the same service file from postman give success 200.
JMeter:
Postman:
Check the header you are sending with your request.
Best way to debug this would be:
Use firebug or chrome developer tools, compare the request you are sending from JMeter and browser sends.
Check the headers that are being sent and other parameters being sent, accordingly fix your script.

Response message: Request Entity Too Large in jmeter

While uploading the audio file from jmeter is returning Response message: Request Entity Too Large in jmeter.
I am new to jmeter. I am trying to upload a audio file to the api-server with the jmeter then i am getting 413 error.
<html><head>
<title>413 Request Entity Too Large</title>
</head><body>
<h1>Request Entity Too Large</h1>
The requested resource<br />uploadAudio<br />
does not allow request data with POST requests, or the amount of data provided in
the request exceeds the capacity limit.
</body></html>
But when i am using postman to upload audio file i am getting success in response.
Please help! Thanks in advance.

Resources