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

[BUG] Unhandled exception. System.IO.FileNotFoundException: The configuration file 'configuration.prod.yaml' was not found and is not optional. #624

Open
jblaaa-codes opened this issue Aug 10, 2024 · 4 comments

Comments

@jblaaa-codes
Copy link

Release version

v6.0.1

Describe the bug

Following the current instuctions for v6.0.1 I didn't see references to create this file. configuration.prod.yaml. I have a github environment with the secrets from the documentation but the GH action fails until you create the file.

Expected behavior

action should continue if you do not have any GH environment overrides and the file does not exist or the documentation may need to be updated.

Actual behavior

created a blank file and the error goes away.

Reproduction Steps

run through the APIOPs documentation in a new GH repo. publish your first change to an API and promote up to prod.

Copy link

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

@waelkdouh
Copy link
Contributor

We have a sample file on the home repo. Also our wiki goes into specifics on how to create it. Finally, you can reference the official documentation of the APIM restful API, which basically tells you what the configuration should look like as APIops follows their specification.

@jaliyaudagedara
Copy link

@manisha-tanwar
Copy link

I'm getting same error
Unhandled exception. System.IO.FileNotFoundException: The configuration file '' was not found and is not optional.

If the configuration file is not optional then why there's this condition

      ${{ if ne( parameters['CONFIGURATION_YAML_PATH'], '' ) }}:
        CONFIGURATION_YAML_PATH: ${{ parameters.CONFIGURATION_YAML_PATH }}

& https://github.com/Azure/apiops/blob/6e9f9b73d1a76c1811e6e578aced64615b17591a/tools/azdo_pipelines/run-publisher-with-env.yaml#L155C1-L156C75

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