Error code 500 while uploading the file on Box Drive - postman

I'm trying to upload file on Box using rest API and getting 500 Internal Server Error.
URL: https://upload.box.com/api/2.0/files/content
Header :- "Authorization: Bearer XYZ"
Body(form-data) : attributes='{"name":"test.png", "parent":{"id":""498765432099}}'
file=file will be here
Postman screenshot are following:-

Thank you guys problem is resolved,
I was using the postman from google chrome extension to check the API
and getting 500 in response.
But now I had tested it on postman official application (https://www.getpostman.com/apps) Now it's working fine.
As postman extension is deprecated it still gives me error but on official application its working fine.

Related

How to resolve 400 Bad Request error in Postman in a sample MEAN application

I am working on a sample MEAN application where in I have started to create the node.js related files and connected the same to MongoDB. I have create a POST call which sends the json to the DB. I tried to test the api using postman but not sure whats wrong, I have checked multiple times, the api throws bad request.Any help on this is much appreciated. Thanks.
Added the relevant route.js, app.js and contact.js files for reference in stackblitz link. Added error in postman for reference.
https://stackblitz.com/edit/node-mlodls?file=app.js
Resolved the issue using postman extension. Wondering why the API doesnt work in postman software and works in postman extension

Postman API call returns 200 but the message is 'failed'

Due to system configuration issue, I had to delete the Postman and reinstall it again.
After the Postman reinstallation, I observe few api links(while other api calls are working fine) are not working.
The failed API link in the postman returns 200 but the body message as 'failed'. Although other API links works fine and receiving the message correctly.
I tried re-installing the postman but no luck. The same link was working fine before my system profile configuration issue. I understand this is something to do with my postman and system profile configuration issue but no sure what fix I apply. This API is working fine with my colleague systems.
enter image description here

Postman cookies not set for subdomain (Postman Inceptor, Postman Native App)

i am playing around with Postman to get some insight on how things work behind the curtain and ran into, what I believe, is an issue but wanted to ask before I create a new issue on GitHub.
I am intercepting the request from my browser to the same site using the Postman Interceptor to use the request values in the native app. I have cookies enabled and the site (the whole domain) whitelisted.
When I use the history to resend the same request that was captured I get an auth error that is caused by the fact that the cookies are not included in the request (found that out by checking the cURL code snippet). I believe the reason for that is, that the cookies are set under another sub domain than that the request is send to.
I will try to include some pictures to clarify. My question here is:
Am I missing something/did I set something up in the wrong way
or is this an issue and I should create an issue in the official Postman Github page
cURL request
Cookies in Postman Native App
you should see if cookie is being send not using code snippet but the console :
its indeed sending cookies ,

Django “python-social-auth”: HTTP 403 Client Error with github

I've followed closely this tutorial which is great.
Everything worked fine until today, where when I log with github I get this error:
HTTPError at /oauth/complete/github/
403 Client Error: Forbidden for url: https://github.com/login/oauth/access_token
What am I missing / what could I have changed?
I'm currently developping a Website with social networks login.
Everything works fine (google, facebook and twitter) but not github: after some attempts, I'm getting now a 403.
The problem in Django is that 403 errors dont show the HTML content that come with the error!
I had to run in Debug mode and add a breakpoint in the file
/usr/local/lib/python3.7/site-packages/requests/models.py
line 940 / where there's the code raise HTTPError(http_error_msg, response=self)
Inspecting the variable self.content.decode("utf-8") showed me that I've been restricted (for no logical reason - what's more strange is that the same code, on my same PC but under Windows, works like a charm).
I'm hoping the technical team at github will explain what went wrong...

REST API call works in ARC client but not in postman or code

I have a REST API, which works fine in Advanced REST Client(ARC) but not working in postman and through code.
Weird part is postman throwing 405 error and when accessed through code it throws 400 error code.
The rest api is pinterest pin api : https://api.pinterest.com/v1/pins?access_token="token"
Header for request - Content-Type : application/json
I don't think its an issue with Pinterest, because it works fine with ARC client.
Any idea on this issue?
Remove the header and it should work. Not sure why that header creates a problem but once I removed that header it worked for me.
STEPS:
I went on Pinterest API-Explorer
There I've selected Pins -> Return information about a Pin
Then I've generated new token and used one Pin ID.
Tool generates url that looks like
https://api.pinterest.com/v1/pins/368661919478924883/?access_token=ACCESS_TOKEN&fields=id
I've used this same URL in Postman, Get Operation and no headers.
Result I get is:
{
"data": {
"id": "368661919478924883"
}
}