New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 error when calling Web API script exposed in Master database #329

Closed
apucilowski opened this Issue May 12, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@apucilowski

apucilowski commented May 12, 2015

Call a script located in Master database remotely through Web API, e.g.
$webClient = New-Object Net.WebClient
$request = "http://mysite/-/script/v2/master/MyExposedScript?user=sitecore\admin&password=b"
$webClient.DownloadString($request)

Expected
script output is returned

Actual
404 error code is returned

@michaellwest

This comment has been minimized.

Show comment
Hide comment
@michaellwest

michaellwest May 12, 2015

Member

Does it work if the script is published to the web database?

On Tue, May 12, 2015 at 8:52 AM apucilowski notifications@github.com
wrote:

Call a script located in Master database remotely through Web API, e.g.
$webClient = New-Object Net.WebClient
$request = "
http://mysite/-/script/v2/master/MyExposedScript?user=sitecore\admin&password=b
"
$webClient.DownloadString($request)

Expected
script output is returned

Actual
404 error code is returned


Reply to this email directly or view it on GitHub
#329.

Member

michaellwest commented May 12, 2015

Does it work if the script is published to the web database?

On Tue, May 12, 2015 at 8:52 AM apucilowski notifications@github.com
wrote:

Call a script located in Master database remotely through Web API, e.g.
$webClient = New-Object Net.WebClient
$request = "
http://mysite/-/script/v2/master/MyExposedScript?user=sitecore\admin&password=b
"
$webClient.DownloadString($request)

Expected
script output is returned

Actual
404 error code is returned


Reply to this email directly or view it on GitHub
#329.

@AdamNaj

This comment has been minimized.

Show comment
Hide comment
@AdamNaj

AdamNaj May 12, 2015

Member

@michaellwest - I know the nature of the problem (Andrzej is sitting a couple of desks away and we've solved the problem before he's submitted the issue). and have already fixed it. Will commit the fix today.

Member

AdamNaj commented May 12, 2015

@michaellwest - I know the nature of the problem (Andrzej is sitting a couple of desks away and we've solved the problem before he's submitted the issue). and have already fixed it. Will commit the fix today.

AdamNaj added a commit that referenced this issue May 12, 2015

@AdamNaj AdamNaj added this to the 3.1 milestone May 12, 2015

@AdamNaj AdamNaj self-assigned this May 12, 2015

@AdamNaj

This comment has been minimized.

Show comment
Hide comment
@AdamNaj

AdamNaj May 29, 2015

Member

Merged by implementing Issue #350

Member

AdamNaj commented May 29, 2015

Merged by implementing Issue #350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment