Skip to content

'NoneType' object has no attribute 'text'"" #935

Open
@poonkothaip

Description

@poonkothaip

Hi
we are trying to upload file to sharepoint using basic auth and below sample,
# Upload file to Sharepoint
target_folder = ctx.web.get_folder_by_server_relative_url(sharepoint_relative_url)
target_file = target_folder.upload_file(sharepoint_variable, file)
ctx.execute_query()
In the above code when it reaches ctx.execute_query() the ctx become none type at times and we get this error 'NoneType' object has no attribute 'text'"
I see many others posted similar issue. Can anyone suggest on the solution for this please

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions