Nuxt Generate request failed with status code 500 - axios

I get an error while generating the project I developed with nuxt. There are codes in the related page that I use asyncData and send service requests. When I delete these codes, I do not get errors, but when there are request codes, I get the following error. I wonder why?
enter image description here

Related

is there a way i can fix my api request issue

I did this but the (endPointUrl) after await get, is showing error, and having being have lot of issue, in which any url I use never responds always showing failed to locate localhost
enter code here

POST 400 and 404 (Not Fount) errors take place at the same time

When I upload file in a project, I get an error pop-up saying "invalid input syntax for integer: "2.01e+18".
And then when I check the concole, I get POST 400 and 404 (Not Found) errors.
POST https://api-staging.helloshop.com/v1/importer 400
POST http://localhost:3000/bags 404 (Not Found)
(I am using express.js by the way)
Is there any possible reason why both errors take place at the same time?.
You are making two requests, one for https://api-staging.helloshop.com/v1/importer, and one for http://localhost:3000/bags, and as result - recieving two errors.
Browser devtools also have a network tab where you can see which requests are you sending.

Ajax call to Zomato API is not working

I am trying to access zomato api.
URL: https://developers.zomato.com/api/v2.1/categories
Headers: 'X-Zomato-API-Key':'myapikeyhere-763demoapi434'
If I use chrome's postman extension or curl then I can access the url & getting 200 status code.
But if I run it through my angular2 app or simple ajax, it is giving error at preflight OPTIONS request, error code is 501. I have tried otherways too, error is same. Need help
Zomato API's can only be accessed from server to server calls, the error message you have reported is a security policy implemented by Chrome to prevent cross site request forgery on the client side.
A way you can get around this is to write a handler on your server end to make handler which the ajax call will use, this handler in-turn makes a request to the Zomato's server to retrieve the data required.

How to write a GET request in API Manager?

I am trying to write the GET request for the search API. I am writing it like this http://localhost:8280/solr/1.0/search?searchText=abc, but I am getting a 404. If I'll write it as http://localhost:8280/solr/1.0/, I'm able to get the JSON response data.
I wrote it is as /* and getting the response using the URL http://localhost:8280/solr/1.0/.
If I am writing it as /search* I'm not getting the 404 (http://localhost:8280/solr/1.0/search?searchText=abc).
Where am I getting wrong?
enable wirelogs and check what kind of request is sent from AM to Backend. You might be able to find out the reason for this. refer http://mytecheye.blogspot.com/2013/09/wso2-esb-all-about-wire-logs.html to enable and analyze the logs

Unable to run Chatter api ios sample

I am looking for some samples which I can use to post/retrieve feeds to/from groups in sales force chatter. While googling I have come across Chatter REST API in conjunction with RestKit. I was unable to run this sample which i have downloaded from github
https://github.com/cseymourSF/Chatter-API-iOS-Sample
After running the code i am able to login to sales force via application. But for the below
Request :
Sending asynchronous GET request to URL ///services/data/v23.0/chatter/users/userId.
(ex:///services/data/v23.0/chatter/users/me)
Error:
User fetch failed with error: Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo=0xa58ffa0 {NSErrorFailingURLStringKey=///services/data/v23.0/chatter/users/userId, NSErrorFailingURLKey=///services/data/v23.0/chatter/users/userId, NSLocalizedDescription=unsupported URL, NSUnderlyingError=0xa5906d0 "unsupported URL"}
and the current url i am suing is below:
https://na15.salesforce.com/services/data/v23.0/chatter/users/me
any help could be appreciated.
It seems like REST API wrong method invocation