Skip to content

GetDownloadLink not working. No option to get the share link. #245

@ghost

Description

Description:
I have a program to upload photos from my pc to a folder and i wanna make the folder publicly visible, i need the share link of the folder.

what are you trying to do
I am trying to get the GetDownloadLink and it does not work. Tried GetDownloadLinkAsync too..

Actual Behavior:
From my log, i see that it starts the process to get the link but it never continues and is stuck on the client.GetDownloadLinkAsync part.

what happens
It created a new folder,
It uploads the needed images
when i do this: Uri downloadLink = await Task.Run(() => client.GetDownloadLinkAsync(node));
it stops there, i tried everything,

Expected Behavior:
it should return the link so i could share it with whoever i want to

what should happen
I believe the issue is related to the megaapiclient, since I've tried every single thing i could think of, asked chat-gpt too and it couldn't provide me a solution.

Steps to Reproduce:

  1. var remoteFolder = await CreateFolderWithRetryAsync(client, localFolderPath); //works as it should
  2. Uri link = await client.GetDownloadLinkAsync(remoteFolder);
    or if i use:
    Uri link = client.GetDownloadLink(remoteFolder); my windows forms app gets unresponsive, and never works again.

I have attached an image from my log

MegaApiClient Version:
1.10.4

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions