Skip to content
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

"Copy Function Url" copies wrong code and returns 401 error #567

Closed
v-dantch opened this issue Sep 6, 2018 · 2 comments
Closed

"Copy Function Url" copies wrong code and returns 401 error #567

v-dantch opened this issue Sep 6, 2018 · 2 comments
Labels
AT-CTI Created by CTI team bug P1
Milestone

Comments

@v-dantch
Copy link

v-dantch commented Sep 6, 2018

Repro Steps:

  1. Create a new project with C#.
  2. Create a new function with HTTP trigger.
  3. Debug the .CS file.
  4. Click 'Deploy to Function App...' to deploy the file to function app.
  5. Copy the function URL and check the result.

Expect:
The object result displays well.

Actual:
The object result does not diaplay.
actual

@v-dantch v-dantch added the AT-CTI Created by CTI team label Sep 6, 2018
@ejizba
Copy link
Member

ejizba commented Sep 6, 2018

Thanks - nice catch.

I looked into this more and it reproduces for all project languages. It's only an issue if the function is not anonymous. I guess we have to update our logic when getting the keys.

Here is the relevant excerpt from the breaking change announcement:

Function App secrets (function, system and master keys) will be stored in blob storage by default.

Previously they were stored in the file system and we are automatically migrating them to blob storage as part of this change, so keys should not change, but if you relied on direct file access or SCM APIs to manage those secrets, that will no longer work.

@ejizba ejizba added this to the 0.10.1 milestone Sep 6, 2018
@ejizba ejizba changed the title Fail to display the object result after deploying to function app "Copy Function Url" copies wrong code and returns 401 error Sep 6, 2018
@ejizba ejizba modified the milestones: 0.10.1, 0.11.0 Sep 6, 2018
@ejizba
Copy link
Member

ejizba commented Sep 10, 2018

Tracking issue here on the functions repo: Azure/azure-functions-host#3411

Still waiting to see what the recommended method is for getting these keys

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
AT-CTI Created by CTI team bug P1
Projects
None yet
Development

No branches or pull requests

2 participants