Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
bjoern
Contributor II
Contributor II

Get File content from github renders the path wrong?

Hi there,
has anyone stumbled upon the error that the "get File content" block cannot parse the path correctly?

In my case the repository path is Managed/SpaceName/AppName/Appname.qvf
For some reason, when I run the automation, the slashes "/" are converted to %2F
Does anybody know why that happens?
I use the same path variable in the automation for create or update file content to github, and there it is working fine and the path is interpreted with /

Labels (1)
2 Replies
Andrea_Bertazzo
Support
Support

It seems a problem with encoding:%2F is the encoded form of /.
I assume that the blocks are automatically URL‑encodeing the input: they treat it as a parameter rather than a path.
If the target API expects literal path segments (with / acting as delimiters), encoding / into %2F will cause lookup failures (e.g., it treats the whole thing as a single filename instead of navigating folders).
Try to see if one of these options are available Instead of using the raw path in Get file content:

1. Use “Get item by path” block:
-Input your path: Managed/SpaceName/AppName/Appname.qvf
- This returns the itemId (GUID).

2. Pass the itemId to “Get file content by ID”
-The ID avoids any encoding issues because the API expects it as a unique identifier.

 
Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up ! 🙂
bjoern
Contributor II
Contributor II
Author

Hi Andrea,
thanks for the reply. Unfortunately I cannot find those two blocks that you mentioned.

I did some further testing, and it seems to me as if there is a bug in some of the github blocks in Qlik Automation.
I tested the block "Get File SHA" where one has to fill in Inputs for User, Repo, Branch & Path. This works fine and I get an output.
Then I tested "Get File" where there are the same inputs. This however leads to the error "Missing mandatory parameter "file_sha"." There is no input however to pass on this information from the "Get File SHA" block.
The block "Get File Content" has the input fields User, Repo, Path & Ref and there the Path is not rendered as in the other blocks, such as "get file sha" or "Create or Update File Content"