Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

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

Open poonkothaip opened this issue 10 months ago • 0 comments

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

poonkothaip avatar Jan 31 '25 11:01 poonkothaip