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

Flow fails to initialize with error "Principal does not have access to API/Operation" #28

Open
dtklein7 opened this issue Aug 20, 2024 · 3 comments

Comments

@dtklein7
Copy link

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Follow steps up 'til 4, then run pf flow test command.

Any log messages given by the failure

As follows:

vscode ➜ /workspaces/rag-data-openai-python-promptflow/src (main) $ pf flow test --flow ./copilot_flow --inputs chat_input="how much do the Trailwalker shoes cost?"
Prompt flow service has started...
You can view the trace detail from the following URL:
http://127.0.0.1:23333/v1.0/ui/traces/?#collection=copilot_flow&uiTraceId=0x1d990b212f7a159e901e846e40801416
pf.flow.test failed with UserErrorException: AuthenticationError: Execution failure in 'get_chat_response': (AuthenticationError) Error code: 401 - {'error': {'code': 'PermissionDenied', 'message': 'Principal does not have access to API/Operation.'}}

Expected/desired behavior

I would expect a 0 exit code and some response from pf. Given the error, I'd like a more descriptive log so I could try debugging the auth issue. I'm not sure where to start.

OS and Version?

provided debian 12 dev container running on WSL 2 Docker on Windows 11.

Versions

git hash 7e8e6b04727364b2a608fd62b2efa1ffa322d266

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@bmerkle
Copy link

bmerkle commented Aug 31, 2024

I seem to have the same error. @dtklein7 do you have any news/workaround/solution ?

@denlai-mshk
Copy link

same error here, I tried to set both apikey or entra ID on the project connection setting for AI search, no help, any idea?
Screenshot 2024-09-27 165946

@philippeback
Copy link

philippeback commented Nov 27, 2024

flow.detail.json
Same issue. Seems to be an issue w the embeddings (see attached).

Start prompt flow service on port 23334, version: 1.11.0.
You can stop the prompt flow service with the following command:'pf service stop'.
Alternatively, if no requests are made within 1 hours, it will automatically stop.
You can view the trace detail from the following URL:
http://127.0.0.1:23334/v1.0/ui/traces/?#collection=copilot_flow&uiTraceId=0x638c606d474208e4d69449de21a62d9b
pf.flow.test failed with UserErrorException: AuthenticationError: Execution failure in 'get_chat_response': (AuthenticationError) Error code: 401 - {'error': {'code': 'PermissionDenied', 'message': 'Principal does not have access to API/Operation.'}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants