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

Run Extractor with config - Error #521

Closed
abymsft opened this issue Apr 7, 2024 · 5 comments
Closed

Run Extractor with config - Error #521

abymsft opened this issue Apr 7, 2024 · 5 comments
Labels
question Further information is requested

Comments

@abymsft
Copy link

abymsft commented Apr 7, 2024

Release version

v5.1.4

Describe the bug

The extractor runs fine when I use "Extract All APIs" option.

But, I intend to extract one API using "configuration.extractor.yaml".

The config file is in place
image

The release version changes are in place
image

Expected behavior

The extractor should extract the desired API

Actual behavior

Actions Error
image

Raw Error Logs
2024-04-07T20:15:30.5928771Z �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m | �[31;1m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m 2024-04-07T20:15:30.5929918Z �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m�[31;1m�[31;1m�[36;1m | �[31;1m �[0m 2024-04-07T20:15:30.5970640Z �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m�[31;1m�[31;1m�[36;1m�[31;1m�[36;1m | �[31;1m{"locale":"en","featureFlags":["code_vulnerability_scanning","copilot_conversational_ux_history_refs","copilot_smell_icebreaker_ux","copilot_implicit_context","failbot_handle_non_errors","geojson_azure_maps","image_metric_tracking","marketing_forms_api_integration_contact_request","marketing_pages_search_explore_provider","turbo_experiment_risky","sample_network_conn_type","no_character_key_shortcuts_in_inputs","react_start_transition_for_navigations","custom_inp","remove_child_patch"]} Page not found · GitHub · GitHub Skip to content {"props":{}} Toggle navigation Sign in Product Actions Automate any workflow Packages Host and manage packages Security Find and fix vulnerabilities Codespaces Instant dev environments Copilot Write better code with AI Code review Manage code changes Issues Plan and track work Discussions Collaborate outside of code Explore All features Documentation GitHub Skills Blog Solutions For Enterprise Teams Startups Education By Solution CI/CD & Automation DevOps DevSecOps Resources Learning Pathways White papers, Ebooks, Webinars Customer Stories Partners Open Source GitHub Sponsors Fund open source developers The ReadME Project GitHub community articles Repositories Topics Trending Collections Pricing "> Search or jump to... Search code, repositories, users, issues, pull requests... --> Search Clear Search syntax tips Provide feedback --> We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly --> Name Query To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign in to GitHub --> Username or email address Password Forgot password? or sign in with a passkey Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} --> Find code, projects, and people on GitHub: Search Contact Support — GitHub Status — @githubstatus Subscribe to our developer newsletter Get tips, technical guides, and best practices. Twice a month. Right in your inbox. Subscribe Product Features Enterprise Copilot Security Pricing Team Resources Roadmap Compare GitHub Platform Developer API Partners Electron GitHub Desktop Support Docs Community Forum Professional Services Premium Support Skills Status Contact GitHub Company About Customer stories Blog The ReadME Project Careers Press Inclusion Social Impact Shop GitHub on X GitHub on Facebook GitHub on LinkedIn GitHub on YouTube GitHub on Twitch GitHub on TikTok GitHub’s organization on GitHub © 2024 GitHub, Inc. Terms Privacy (Updated 08/2022) Sitemap What is Git? Manage cookies Do not share my personal information You can’t perform that action at this time.�[0m 2024-04-07T20:15:30.7150950Z ##[error]Process completed with exit code 1. 2024-04-07T20:15:30.7257465Z Post job cleanup.

Reproduction Steps

Copy link

github-actions bot commented Apr 7, 2024

  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.

@abymsft abymsft changed the title Extractor with config - error Run Extractor with config - Error Apr 7, 2024
@waelkdouh
Copy link
Contributor

This seems to be an issue with your environment. Also the logs you posted are not related to apiops.

@waelkdouh waelkdouh added the question Further information is requested label Apr 7, 2024
@abymsft
Copy link
Author

abymsft commented Apr 7, 2024

Something seems to be the problem with the exe being used to invoke the request. I reused the code from "without config file section" and it worked fine 🤔
I can't dive into this right now. Have a customer demo tomorrow :P
Sharing the "run with config section" from runextractor.yaml below.

run: |
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$VerbosePreference = "Continue"
$InformationPreference = "Continue"
Write-Information "Downloading extractor..."
$extractorFileName = "extractor.linux-x64"
$extractorFinalFileName = "extractor"
if ("${{ runner.os }}" -like "win") {
$extractorFileName = "extractor.win-x64.exe"
$extractorFinalFileName = "extractor.exe"
}
elseif ("${{ runner.os }}" -like "mac" -and "${{ runner.arch }}" -like "arm") {
$extractorFileName = "extractor.osx-arm64"
}
elseif ("${{ runner.os }}" -like "mac" -and "${{ runner.arch }}" -like "x86_64") {
$extractorFileName = "extractor.osx-x64"
}
$uri = "https://github.com/Azure/apiops/releases/download/${{ env.apiops_release_version }}/$extractorFileName"
$destinationFilePath = Join-Path "${{ runner.temp }}" $extractorFinalFileName

Here's the result - PR created with the desired artifacts in place.
image

@DibyaRanjan1
Copy link

This seems to be an issue with your environment. Also the logs you posted are not related to apiops.

I am facing the same issue recently.

@waelkdouh
Copy link
Contributor

@abymsft did your issue ever get resolved?

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

No branches or pull requests

4 participants