MongoDB "GET API" Returning Empty Array - mongodb

I am trying to fetch data from mongodb altes, I have uploaded 5 collections which is working absolutely fine but as soon as I'm trying to upload new Api it is showing fine (status fine) but as soon as I try to check it through postman ..it shows "[]" empty;
what could be reason;
enter image description here

few days back I had put out question, so I got the answer ....
if you are able to post Api from postman and getting inside the mongodb atles , but when you post the data "Manually" and when you check in the postman and coming empty, then you have to make post req route as you have made get reoute, And post through postman instead of posting manually on mongodb atles....then you will be successfully getting back Api from APi.

Related

Binance BSC logs API request data failed

I am submitting a request for data from the Binanance API as follows:
https://api.bscscan.com/api
?module=logs
&action=getLogs
&fromblock=24726622
&toBlock=24726632
&address=0x94084b7a8d80b2c3cc0dccd87cb6ae3cc67d364d
&topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
&apikey=JRYDR6FBWRKY5C8NMZJKFB8GEP1QHFQJQT
However, I can't get any data from this URL. I have double-checked, and I know that the parameters are correct.
Here is an example of using Binanace's API, which works well:
https://api.bscscan.com/api
?module=logs
&action=getLogs
&fromBlock=4993830
&toBlock=4993832
&address=0xe561479bebee0e606c19bb1973fc4761613e3c42
&topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
&apikey=YourApiKeyToken
Why is that working but mine not working?
I would highly suggest using Postman, which you can use to quickly test requests. I ran your request, with api-key, through Postman and was able to get a 200 response with data. See this screenshot.
Please note I blanked out the api key value. I suggest you do the same in your post unless its fake.
I had to remove the line breaks in the code you pasted. Could this possibly be the issue?

W5100S-EVB-Pico is not connecting with server other than http://httpbin.org

I have purchased W5100S-EVB-Pico to send data over airtable. I write down python script and configured network by following this link.
https://github.com/Wiznet/RP2040-HAT-MicroPython/tree/main/examples/HTTP/HTTP_Client
When I try to make request on http://httpbin.org/ either get or post as mentioned in above link, its worked and response I get fine.
But If I use same code to connect any other server either get or post nothing happened. It keeps sending data but no response from server. And it keeps busy.
Can please someone help me where I am making mistake.
URL I'm trying to send data are working fine, if I open it that url in browser it worked fine but when used it in W5100S-EVB-Pico no response.
I followed exactly same step same in above link.

MongoDB Data API invalid session error with postman and python

I’m trying to Update/Post to my documents in a MongoDB database through using the Data API via postman, I followed all the steps and filled in all the essential variables and I consistently get that error.
invalid session: error finding user for endpoint
Here it shows that I successfully forked the MongoDB Data API to my Postman collection and filled in all the necessary variables.
First Image - Postman Variables
This is me making the POST request to find a document in my database (this same exact error keeps on showing with all the other endpoints, update, insert, etc…)
Second Image - The Request And The Occurring Error
And these are the header and body of the request showing that the variables were correctly setup and the the request is going through with no problems but I get that same error every time.
Third Image - Header and Body of The Request
So I figured it might be a postman thing so I tried to make the request using Python instead and I got the same exact error there too.
Fourth Image - Python Request
This is the document I am trying to send the requests to.
Fifth Image - The database in MongoDB Compass
And this is my Data API game with the cluster all being setup and given access for both reading and writing.
Sixths Image - The MongoDB Data API Page
So I am not sure what is exactly going on or what am I not seeing.

SharePoint REST Api returns empty data in Postman

I am using the SharePoint REST API to get the data, but it returns the empty data in Postman. When I put the same url in browser there I can see number of items were returned. any suggestions?
Screenshot
There might be something wrong in App's Permission Request XML
Please try following code to reset the App's Permission Request XML in the link:
https://YourSharePointOnlineSiteUrl/_layouts/15/appinv.aspx
Then request a new Access Token and try get the data again.

Using postman for Giphy API Get request but comes back with no data

Like the title says, I'm trying to do a GET request to the Search endpoint of Giphy's API, but it comes back with an empty data array. Is there anything I'm doing wrong? I've made sure the API key is correct since it works for the 'trending' and 'random' endpoints.
Postman Request
In your screenshot, it looks like you've entered the api_key and q as Headers.
Instead, you should submit this information as Request Parameters. If you click the Params button, you'll expand a similar looking key-value editor where you can enter the parameters.