Unknown server error when accessing Search api via REST
When trying to access the SharePoint search service via REST, I always get an internal server error with no information about the cause of the problem.
My SharePoint app uses app-only permissions, and includes search permissions as follows:
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="Write" />
<AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="Read" />
<AppPermissionRequest Scope="http://sharepoint/search" Right="QueryAsUserIgnoreAppPrincipal" />
</AppPermissionRequests>
I see the search permission listed when installing the app.
I know I'm getting a valid bearer token, because all of my other requests work fine. Here is the request I'm making that returns the error:
REQUEST:
$ curl -H "Authorization:Bearer abcABC...f1-iYrm-efhQ" https://<domain-my>.sharepoint.com/_api/search/query
where <domain-my> is the SharePoint site that I'm accessing. I've also tried this request with all combinations of headers, including Accept, Content-Type, odata, and even including the request digest. I've also tried adding query parameters, and using
POST with the query in the message body. However, this is always the response I receive:
RESPONSE:
<?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>-1, Microsoft.Office.Server.Search.REST.SearchServiceException</m:code><m:message
xml:lang="en-US">An unknown error occurred.</m:message></m:error>
If I log in to SharePoint I can make a get request to /_api/search/query and it returns a non-error response. What is causing the problem with my REST request? Is there any way to get more information from the server? This is SharePoint online, so I don't have
access to the server.
Thanks!
When using search you must have a user context, it cannot be used with an app only policy. This feature has been submitted to Office User Voice. You can vote for it here:
http://officespdev.uservoice.com/forums/224641-general/suggestions/6069886-make-it-possible-to-use-sharepoint-search-with-app
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer
Similar Messages
-
Still getting "Unknown Server Error" when trying to log into CC Desktop App
Hi -- I signed up for the early access file/font sync and received my email saying "You're In..."
When I used the link in that email to download the CC Desktop App and when I launch it, I'm still receiving the error "Unknown Server Error" Sign in is currently unavailable. We are unable to access your account. Please try again later.
Anyone run into a similar situation or have thoughts on how to remedy this?
Thanks in advance!
KristinaSolution 2 from this help article http://helpx.adobe.com/creative-cloud/kb/unknown-server-error-launching-cc.html should resolve the problem.
-
CC Keeps telling me Unknown server error when trying to sign in
please help! this has been going on for 2 days now... says sign in is currently unavailable to please try again later.
HI,
Please try the following document.
http://helpx.adobe.com/creative-cloud/kb/unknown-server-error-launching-cc.html
Thanks
Kapil -
Unknown Server Error when trying to login
Hi,
I'm trying to work with Photoshop, was fine yesterday. Today it's not working.... Unknown server error on my desktop login, expecting me to use a trial version?
I need to get some work done, what's the problem?\
Davefound this: http://helpx.adobe.com/creative-cloud/kb/unknown-server-error-launching-cc.html
worked a treat. -
UnKnown Server Error when logging in
I have had this issue for months. And I have been un able to install new updates for any of my creative cloud products that I pay for monthly. Please see the attached screenshot. I have uninstalled the creative cloud desktop and installed it several times and this issue will not go away.
Hi zreed92,
Please refer the kb: http://helpx.adobe.com/creative-cloud/kb/unknown-server-error-launching-cc.html.
Regards,
Romit Sinha -
Search Problem with SharePoint 2010: Get Internal server error when doing search
Hi,
Am getting Internal server error, corelation id.. when I use the search functionality in SP2010.
I've installed Sharepoint 2010 trial version on windows server 2008 r2 and the database server used is a SQL server 2008 R2.
I got the following messages with ULs viewer for the relative Corelation ID:
Process
Product
Category
Level
Message
w3wp.exe (0x1808)
SharePoint Foundation
Monitoring
High
Leaving Monitored Scope (Search Statistics). Execution Time=404.4175
w3wp.exe (0x1808)
SharePoint Server
General
Medium
Constructed a new async cache named Location Configuration Cache
w3wp.exe (0x1808)
SharePoint Server Search
Administration
High
'SharePoint_SearchApplicationProxy', location cache:
Refreshing location cache
w3wp.exe (0x1808)
SharePoint Server Search
Administration
High
SharePoint_SearchApplicationProxy', location cache: Exception while fetching
location configuration data. StackTrace: Microsoft.SharePoint.SPEndpointAddress
NotFoundException: There are no addresses available for this application.
at Microsoft.SharePoint.SPRoundRobinServiceLoadBalancer.BeginOperation()
at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.
GetLocationConfigurations(Int64& lastUpdate, Boolean& useCrawlProxy)
at
Microsoft.Office.Server.Search.Administration.LocationConfigurationCollection.
PopulateCollection()
at Microsoft.Office.Server.Search.Administration.
LocationConfigurationCollection.Init()
at Microsoft.Office.Server.Search.
Administration.LocationConfigurationCollection..ctor(SearchServiceApplicationProxy
searchAdmin)
at Microsoft.Office.Server.Search.Administration.LocationCache.
FetchLocationConfigurationData()
w3wp.exe (0x1808)
SharePoint Server Search
Query
Unexpected
CoreResultsWebPart::OnInit: Exception initializing: System.NullReferenceException:
Object reference not set to an instance of an object.
at Microsoft.Office.Server.
Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()
at
Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)
w3wp.exe (0x1808)
SharePoint Server Search
Query
Exception
Internal server error exception: System.NullReferenceException: Object reference
not set to an instance of an object.
at Microsoft.Office.Server.Search.WebControls
.CoreResultsWebPart.SetPropertiesOnQueryReader()
at Microsoft.Office.Server.
Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e) System.
NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.
SetPropertiesOnQueryReader()
at Microsoft.Office.Server.Search.WebControls.
CoreResultsWebPart.OnInit(EventArgs e)
w3wp.exe (0x1808)
SharePoint Server
Unified Logging Service
Monitorable
Watson bucket parameters: SharePoint Server 2010, ULSException14, 06175311
"sharepoint server search", 0e00129b "14.0.4763.0", 17853a8f "microsoft.
office.server.search", 0e00129a "14.0.4762.0", 4bad937d "sat mar 27 09:11:25
2010", 0000320d "0000320d", 0000002d "0000002d", 4a6d3421 "nullreferenceexception"
, 67316a39 "g1j9"
w3wp.exe (0x1808)
SharePoint Foundation
Monitoring
High
Leaving Monitored Scope (Search Action Links OnInit). Execution Time=395.3955
w3wp.exe (0x1808)
SharePoint Foundation
Monitoring
High
Leaving Monitored Scope (Add WebPart with error#4). Execution Time=527.8118
w3wp.exe (0x1808)
SharePoint Foundation
Monitoring
High
Leaving Monitored Scope (Add WebParts). Execution Time=3601.2636
w3wp.exe (0x1808)
Web Content Management
Publishing
Medium
Caught a thread abort exception in TemplateRedirectionPage.ProcessRequest,
the exception may be expected. stack trace=
at System.Web.UI.Page.
ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at
System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.SEARCHRESULTS_ASP
X__1518441470.ProcessRequest(HttpContext context)
at Microsoft.SharePoint.
Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context)
w3wp.exe (0x1808)
SharePoint Foundation
Monitoring
Medium
Leaving Monitored Scope (Request (GET:http://nestestsp:25943/Pages/results.aspx
?k=home%20nesintranet)). Execution Time=3811.6724
Can anybody help me find a solution for this issue.
ThanksAfter making sure that all services are up and running, I had to deactive and activate the "SharePoint Server Site Search" web site collection feature. Then the search started working for the time being.
However, it throws the error again after 8 to 9 hours. This has been happening for last couple of weeks. I also came to know from my windows server team that they moved the AD from one place to another. Since then I am having this issue.
The log file has the following error:
CoreResultsWebPart::OnInit: Exception initializing: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)
Internal server error exception: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e) System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()
at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e)
Harish Vajja -
Internal server error when accessing portal
Oracle 9i As Portal was successfully installed and configured. pages, applications, components, etc were created and it was workinf fine.The problem arose when a servlet program was written using JPDK and accessed at http://domainname/servlet/name . the following error was encountered:
500 Internal Server error
The server encountered an internal error or misconfiguration and was enable to complete your request
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error
More information about the error may be available in the server error log
now that i am not able to access the portal home page
http://machine:port/pls/portal30; but i am able to access the login server
Please help me with what can be done to access the portal pages in this situation.
Note: Saw a document on metalink and checked for the correctness of configuration of jserv.conf, jserv.properties and zone.properties
SoumyaSoumya,
Had the same problem at a client site. Was using 3.0.9.8.0 and upgraded to 3.0.9.8.1 and it fixed it. I seem to recall it has something to do with parallel page engine synchronization or something along those lines. If you have the same issue as I had then this should fix it.
Oracle 9i As Portal was successfully installed and configured. pages, applications, components, etc were created and it was workinf fine.The problem arose when a servlet program was written using JPDK and accessed at http://domainname/servlet/name . the following error was encountered:
500 Internal Server error
The server encountered an internal error or misconfiguration and was enable to complete your request
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error
More information about the error may be available in the server error log
now that i am not able to access the portal home page
http://machine:port/pls/portal30; but i am able to access the login server
Please help me with what can be done to access the portal pages in this situation.
Note: Saw a document on metalink and checked for the correctness of configuration of jserv.conf, jserv.properties and zone.properties
Soumya -
URGENT: 500 Internal Server error when accessing forms
Hi,
Can any one please help me out on this. I am trying to access my forms and reports in http://localhost:7779/forms/frmservlet and I get the error:
500 Internal server error
The server encountered an internal error or misconfiguration and was unable to complete your request
Please help
thanks...Check whether your DBControl or ASControl service is still running or crashed. EM is not able to connect to the Management Server.
For instance in Windows, you may see that the Servise is not started. Then check for error logs in $ORACLE_HOME/sysman/logs for any related error messages in the log files -
Hi Team,
As of IDM 7.2 SP8 patch2, when we use Enterprise role or Privilege in the access control definition of a task, accessing this task from UI5 i.e REST API is giving unauthorized error even though user is already having the required role or privilege.
But the task is working fine if we use fixed user ID or keeping blank value in allowed users field.
Attached the current access control definition of the task we configured & the error message info for reference
Regards,
Venkata BavirisettyHi Ralitsa,
Thanks for your response and sorry for late reply.
The XXXX in role is not used as a wild card. the name itself is in that format. I have searched the role and then selected from search list.
Let me know if you need any clarifications?
Refards,
Venkata Bavirisetty -
Error when accessing video content via Home Sharing on iPad
Updated iTunes (Oct. 22) with the iCloud Control Panel for Windows 7. I enabled iCloud for Windows 7 via the Control Panel. Home Sharing is enabled in itunes. I can play music on my iPad2 using the Library on my Windows machine. But it I try to play any videos (movies/tv) the following error is displayed:
"You do not have permission to access the requested resource"
The Home Sharing is working on my Apple TV device. Any suggetions or help would be appreciated.
Thanks,
TroyI had exactly the same problem on my iPhone. Switching it off and back on again has solved the problem. My iTunes library is on a Mac but I don't think that should make any difference. Intermittently, I have also had difficulty accessing my iTunes library from my iPad2 although not with any error message. Turning home sharing off and back on again in iTunes solved that one
Mike -
Still problems with "unknown server error"
I followed the solutions in document (linked posted by Ken G Rice on 23/07/13) but am still getting "unknown server error" when attempting to sign in to Creative Cloud from my desktop. I'm using Mac OS 10.8.4. Would that cause a problem?
I spoke with Gold Support. One assumption after the conversation is that ConCast(Comcast) is throttling me. The upload times out. It does end up correct on my iPad in Adobe Content Viewer and I have since sent this issue to the App store and all is well. Even with these update issues happening the whole time.
I cut larger stories in to smaller chuncks for tests. They worked in pieces but then a certain section would not after it worked earlier. I've had smaller stories work fine for a couple of updates then all of a sudden would not. Then they would work gain on the 3rd retry.
Add any video of any size and I can count on the error message.
They content is making it to your servers but I'm getting error messages but when I get the error message it is usually right at the spot you see above in my attached image.
I need to talk with Comcast and see what they have to say and take it from that point. I need to get this figured out. I burned too much time dealing with it.
Thanks,
Ron
Fly & Light Tackle Angler -
Sign in failed - Unknown server error (-2) when trying to sign in to new playbook
I get the message "Sign in failed - Unknown server error (-2)" when I try to login to the Blackberry ID page of a new playbook during initial setup. This prevents me from continuing and using my device. A similar error message appears when I tap "Forgot password?" which is An unknown error has occured. Please try again (-2)
I have tried what others have done when they have unknown error (-6) which is turn off playbook and plug into desktop manager then update to reflash, but I continue to get the same error.
I know my BB ID username and password are correct because I can login to the web with them. Not sure what to do next.Just to test the simple things first, did you try to sign in using another credential?
If only yours fails, then is a RIM issue, otherwise is indeed your Playbook failure.
--- Catalonia, next state in Europe ----
Use the "solved" or "Like" icons if my answer helped you.
BES10 administrator for several customers.
"SMPTE Calculator" timecode APP developer for BB10 -
Our company have just upgraded to iOS 6 and the majority of the users are now receiving the following error 'Cannot Get Mail – Server error. Contact your server administrator' when accessing ms exchange this never happened on iOS 5 can anyone help
Have you tried deleting the account and re-adding it on the phone?
What version of Exchange server are you running? -
Unknown server error (30641)- BB playbook- when trying to create BB ID
unknown server error (30641)- During set up, it asks that you create a Blackberry ID for the BB playbook. Then it shows unknown server error (30641)- I plug it to my computer and download the Desktop manager which ask to update it. I did then it told me disconnect Playbook, install BB ID and plug into PC again. But I got server error again. I am stuck on server error. can you by pass the ID set up and get the BB playbook working and the ID thing after? The ID is not even some critical security feature that must come before the enjoyment of the product. I am really frustrated with my brand new device and my money is wasted. If BB has no fix for this I want my money bacck.
Solved!
Go to Solution.Perhaps this can help you:
Article ID: KB28198 "Error Id: 30641" is encountered when creating a BlackBerry ID with BlackBerry App World on a smartphone
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
I get a 404 error when accessing my website which is supported by Apple. The message says that the server can't find my page. My browser is Safari. How can I fix the problem when it failed just today?
If you uploaded to MobileMe, it's no longer available. Apple's closed MobileMe and stopped offering web hosting.
(116252)
Maybe you are looking for
-
Showing error in read_text function module
- Forcast ID Number: Read function module READ_TEXT where ID = Z001, Object = VBBK to get the Forcast ID. Display it on the output. CALL FUNCTION 'READ_TEXT' EXPORTING CLIENT = SY-MANDT ID
-
How to reorder photos in folders based on capture date
I have scanned a bunch of photographs and imported them into lightroom. I then went and changed all the capture dates to represent when the photos were actually taken. Now I would like to put the photo's in a folder structure based on the capture dat
-
Xbox One Portfowarding on WRT310N to get NAT open
https://support.xbox.com/en-US/xbox-one/networking/network-ports-used-xbox-live Can someone help me out with this? Ive tried with single port and the port forwarding but my NAT is still moderate.
-
HELP! MY IPOD CLASSIC WILL ONLY COME UP AS A HARD DRIVE
Hi I connect my iPod classic (2007) to my Macbook pro and it shoes as a hard drive and doesn't connect to itunes. I have tried all sorts of things as I'm normally not stuck when it comes to Mac...however I'm stuck! I just want music on the iPod wheth
-
I am not able to install apps from the Appstore in Iphone 5c. I tried to switch off my phone and switch it on again. But it still doesnt work