Skip to content

Change swiftSegmentSize config from string to int. #83

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

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

jbeales
Copy link
Contributor

@jbeales jbeales commented Sep 21, 2021

When uploading a large object the swiftSegmentSize config option gets passed around until it gets used to create a GuzzleHttp\Psr7\LimitStream, where it must be an integer. Having it as a string causes a TypeError.

I'm not sure when this changed, everything was working fine for me, but I updated some dependencies today and must have pulled in a new version of of either sausin/laravel-ovh or php-opencloud/openstack, and now the types don't agree.

It might be logical to change the swiftLargeObjectThreshold as an integer too, but it is not causing any problems as a string so I didn't change it.

@jbeales
Copy link
Contributor Author

jbeales commented Sep 22, 2021

Let's wait on this, it doesn't seem to have completely fixed my problem. I'll post back when I have figured out what's going on.

This was an error. I was using the wrong commit. The PR fixes the problem.

@sausin sausin merged commit b936df0 into sausin:master Sep 23, 2021
@sausin
Copy link
Owner

sausin commented Sep 23, 2021

Thanks @jbeales !!

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

Successfully merging this pull request may close these issues.

2 participants