Instagram API for search users - instagram-api

I work on application with Instagram API. Today I have problem with searching users
https://api.instagram.com/v1/users/search?q=john&access_token=6714600555.af81720.58e232564ed94361a8d78a77cfdfce5f
I got this error
{
"meta": {
"code": 400,
"error_type": "APINotFoundError",
"error_message": "this user does not exist"
}
}
Do you know where is problem?

User search was deprecated 4th of April 2018. Many endpoints have been deprecated since the Cambridge Analytica data scandal.
https://www.instagram.com/developer/changelog/

Related

AzureMfaProtocolProvider - UserMessageIfBadReputation

As part of MFA in a custom policy we're using AzureMfaProtocolProvider to send one-time codes via SMS.
For some users we're seeing the following error:
{
"Key": "Exception",
"Value": {
"Kind": "Handled",
"HResult": "80131500",
"Message": "ErrorCodes: UserMessageIfBadReputation",
"Data": {
"IsPolicySpecificError": false
}
}
}
I can't seem to find any information regarding this error in the docs.
How can I figure out what triggers this and why it was triggered for that specific user?
PhoneReputation service is integrated with Azure MFA to provide a near-real time determination which tracks tracks the usage and reputation of phone numbers as they are used across various Microsoft services.
Any particular browser user agent having the issue, few days back i worked on a similar issue where latest version of firefox reported this kind of issue reference: https://learn.microsoft.com/en-us/answers/questions/1090554/azure-b2c-unblock-phone-number.html?childToView=1097185#comment-1097185
Also where are the users located who reported this error ? any specific region/country code users reported this issue.

General Exception Microsoft Graph API OfficeConversion_ConverterInternal

I've been calling this endpoint for the last month or so by converting my word document into a pdf and its been working fine:
https://graph.microsoft.com/v1.0/drives/{drive_id}/root/children('example.docx')/content?format=pdf
I tried this today and it seem that i don't get the pdf as a response but rather:
{
"error": {
"code": "generalException",
"message": "Error from Office Service. Url=https://wordcs.officeapps.live.com/document/export/pdf HttpCode=NotFound cert=subject:;thumbprint: ResponseHeaders=Connection: close\r\nDate: Wed, 27 Jan 2021 14:14:23 GMT\r\nServer: Microsoft-IIS/10.0\r\nX-Powered-By: ASP.NET\r\n",
"innererror": {
"code": "OfficeConversion_ConverterInternal"
}
}
}
I followed these docs from Microsoft but with no help :/
https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&tabs=http
When i don't use the format parameter to fetch the pdf conversion i can successfully get a response (200) from the original file atleast:
https://graph.microsoft.com/v1.0/drives/{drive_id}/root/children('example.docx')/content
Have the Microsoft Graph API been updated recently?
Also i do have all Azure access and all of that since this has been working fine for the past month so I'm almost certain the API has changed or perhaps my domain got blocked or something...
please check now. The issue has been resolved.

How to resolve this 404 - "ItemNotFound' error in Sharepoint(FileContentRead) using Microsoft Graph API?

I had used below API to read its content from Sharepoint using Microsoft Graph API.
https://graph.microsoft.com/v1.0/sites/{hostname},{spsite-id},{spweb-id}/drives/<drive-id>/items/<items-id>/content
Two days before, It properly get file content from root site properly. but today i have checked to get the same file content it leads below issue.
{
"error": {
"code": "itemNotFound",
"message": "Item not found",
"innerError": {
"request-id": "<request_id>",
"date": "<date_time>"
}
}
}
Don't know what it could cause this? Am googling it not found better solution for it.
Anyone suggest me the way to resolve above issue.

expand=fields($select=***,****) on the SharePoint Graph resource doesn't work and how about filtering?

I'm playing with the microsoft graph and especially the sharepoint beta api and i am constantly running into issues. I know its beta, but still;)
I'm getting out my expanded fields but i'm not able to select other than id.
/items?expand=fields(select=id) <-- works
/items?expand=fields(select=Title) <-- fails with response being
{
"error": {
"code": "invalidRequest",
"message": "The request is malformed or incorrect.",
"innerError": {
"request-id": "f460cded-46da-468c-a027-f027707a62fc",
"date": "2017-05-10T09:00:10"
}
}
}
Further on trying to filter the request with the request /items?expand=fields&$filter=fields/id eq '421' doesn't work and after a long period just returns a response without taken the filter into account.
Can someone respond if the experience the same or if my syntax is wrong or whatever would be nice. Thanks in advance. Ole Bergtun
i changed /items?expand=fields(select=Title) to /items?expand=fields(select%3DTitle) and it works for me.

Paypal Sandbox INTERNAL_SERVICE_ERROR

I am a little confused at the moment i am trying to charge a credit card in sandbox mode on PayPal's Rest SDK.
When i attempt to take payment i am getting the following response:
{
"status": 500,
"duration_time": 124,
"body": {
"message": "An internal service error occurred.",
"information_link": "https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR",
"name": "INTERNAL_SERVICE_ERROR",
"debug_id": "1d327d8a79044"
},
"additional_properties": {},
"header": {
"Content-Length": "209",
"Content-Language": "*",
"X-SLR-RETRY": "500",
"CORRELATION-ID": "1d327d8a79044",
"Date": "Thu, 14 Jul 2016 16:49:14 GMT",
"Connection": "close",
"Paypal-Debug-Id": "1d327d8a79044",
"PROXY_SERVER_INFO": "host\u003dslcsbplatformapiserv3001.slc.paypal.com;threadId\u003d200",
"Content-Type": "application/json"
}
}
I am unable to find anymore information on this, I've searched various places and seen a few suggestions ive tried such as negative testing on/off and that made no difference at all.
Any help would be apreciated,
Regarding "INTERNAL_SERVICE_ERROR", in sandbox environment, the testing credit card in your API request is a generic one and there are lots of accounts attached to this credit card, when PayPal execute your API request, we need to load all the related accounts during transaction, so it caused time out error and internal service error, please try some rarely used card number, such as below:
VISA 16 digit
4916339731576481
4916037567876898
4024007171154213
4532782720397175
4556654893065114
4539432483175995
4716339122298416
4532325401406798
4539157680503828
4124138105007679
4485178251029161
4916231960500037
4058178241644969
Please have a try.

Resources