Closed Serena1993 closed 2 years ago
413 HTTP response means Payload Too Large
The example docker file instructs setting http://localhost:8080/cache
as a cache_address
(docs) - it sets 1GB max file size there. Otherwise, the max upload size is 1MB.
Please switch to /cache
or configure nginx.conf accordingly so it has bigger client_max_body_size
for your /newcache
.
A new problem, when I use the cocoapods-plugin integration method, I can't get the correct cache link detection in the consumer mode, so I can't get the actual cache that already exists.
[x] Run docker locally
[x] Update Podfile mode to producer
[x] Pod install
➜ bundle exec pod install
Prepare local specs repositories
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
[XCRC] XCRemoteCache enabled
[x] Build app
[x] uploaded cache to localhost
[x] Update Podfile mode to consumer
plugin 'cocoapods-xcremotecache'
xcremotecache({
'cache_addresses' => ['http://localhost:8080/cache/'],
'primary_repo' => 'xxx',
'primary_branch'=> 'xxx',
'mode' => 'consumer',
'check_build_configuration' => ['DevDebug'],
'final_target' => 'MyTarget',
'enabled' => true
})
[] Pod install failed
➜ bundle exec pod install
Prepare local specs repositories
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
[XCRC] XCRemoteCache disabled - no artifacts available
It seems that the URL checked and the cache are not the same.
frome xcprepare console log: http://localhost:8080/cache/marker/015f9205f102f4f1bb12571b035ac334bcf63285-%5BDevDebug%5D-iphonesimulator-13C100-5
file real download link: http://localhost:8080/cache/marker/015f9205f102f4f1bb12571b035ac334bcf63285-DevDebug-iphonesimulator-13C100-5
Hello again,
015f9
? if not, specify primary_branch
to the branch name (on a remote repo) against which the producer built artifacts/marker
paths, not /meta
. /meta
files specify if an artifact of a given target is available (and what is its filename), while /meta
says if artifacts for all targets are available for the shaYou edited you comment so now have more context. Please try
'check_build_configuration' => 'DevDebug',
it seems to be a string, not an array.
The original problem seems to be resolved
My integration setup
primary_repo: https://my-private-repo.git cache_addresses:
And I always get the error: error: (XXX_Example) Postbuild step failed unsuccessfulResponse(status: 413)
Could you help me find the problem? Thanks