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

Failed to render: marked(): input parameter is of type [object Object], string expected in Docs tab #7527

Open
1 task done
AstNt-Br opened this issue Jun 11, 2024 · 0 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@AstNt-Br
Copy link

Expected Behavior

Successful Import: The JSON collection should be imported without any errors.
Proper Rendering: The Docs tab should accurately render the imported documentation, enabling me to view details and interact with API endpoints effectively.
API Interaction: I should be able to explore and test the API endpoints included in the collection, without encountering any rendering issues or errors.
User-Friendly Experience: The imported collection should be presented in a readable and accessible format, ensuring a smooth experience for API integration and testing.

Actual Behavior

When attempting to import a JSON collection from VTEX into Insomnia, an error message appears in the Docs tab, stating:

"Failed to render: marked(): input parameter is of type [object Object], string expected. Please report this to Marked GitHub repository."

This error prevents the proper rendering and reading of the imported JSON collection, hindering the ability to view documentation or interact with API endpoints as expected. The issue seems to be related to the way Insomnia processes the imported JSON, potentially misinterpreting its structure or content.

The error message suggests a problem with the marked library used for rendering markdown in the Docs tab.

This error consistently occurs every time the collection is imported, making it difficult to utilize Insomnia for this specific API integration.

If anyone has encountered this issue before or found a solution, I would appreciate your insights. Am I missing something in my approach?

Thank you!

Collection from VTEX: VTEX API Reference

Captura de tela 2024-06-11 093724

Reproduction Steps

Open Insomnia.
Go to File -> Import -> From File.
Select the VTEX JSON collection file (attached below).
Navigate to the Docs tab to view the error.

Is there an existing issue for this?

Additional Information

Version: Insomnia 9.2.0
Build date: 15/05/2024
OS: Windows_NT x64 10.0.19045
Electron: 29.3.0
Node: 20.9.0
Node ABI: 121
V8: 12.2.281.27-electron.0
Architecture: x64

Insomnia Version

2024.9.2.0

What operating system are you using?

Windows

Operating System Version

Windows 10.0.19045

Installation method

https://insomnia.rest/download

Last Known Working Insomnia version

2024.9.2.0

@AstNt-Br AstNt-Br added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

1 participant