Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

REST problem between development and production

$
0
0

Hello again

I thought I had solved my previous problem with an orthodox solution and I really got it working fine in my development server.

But now when I try to use the REST services on production service I have crashed in hard to understand obstacle.

I can read a list without any problems (using my own account for now) but when I try to get the profile data (using url:

$curl=siteUrl . "/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='$user'";

I get an curl error "Failure when receiving data from the peer". I could think that this comes from the user rights BUT I can run this directly from the browser (as me, myself) and get the output without any problems.

If I change the $siteUrl to refer my dev server, it works flawlessly.

To sum up:

  1. Reading lists works fine
  2. This code runs great on dev server (as myself)
  3. The URL works just like it is, if browsed directly in the browser

Does anybody have any idea how to tackle this problem? I am about to become desperate as time is running and there are people with baseball bats "persuading" me to get something done...

wbr

hank


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>