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

Null url returned #10

Open
juliusspencer opened this issue Oct 7, 2024 · 0 comments
Open

Null url returned #10

juliusspencer opened this issue Oct 7, 2024 · 0 comments

Comments

@juliusspencer
Copy link

Hi,

I'm trying to upload a file and get the following:

Exception: Attribute provided with no value: url
    at OnedriveApp.fetch (code:717:15)
    at OnedriveApp.uploadFile (code:488:24)
    at uploadToOneDrive (CreateReport:235:36)
    at createReport (CreateReport:79:26)
    at __GS_INTERNAL_top_function_call__.gs:1:8

It looks like the uploadUrl below is empty / null.

      payload = '{"item": {"@microsoft.graph.conflictBehavior": "rename", "name": "' + fileinf[1] + '"}}';
      url = (fetch.call(this, url, method, payload, headers, null)).uploadUrl;

Is there something I can do to find out why uploadUrl might be null?

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

1 participant