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

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

Open
poonkothaip opened this issue Jan 31, 2025 · 0 comments
Open

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

poonkothaip opened this issue Jan 31, 2025 · 0 comments

Comments

@poonkothaip
Copy link

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

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