gclient sync for flutter engine fails (third_party/dart/third_party/pkg/ffi ) with error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400

Hi,

I tried to compile the Flutter engine used in stable 1_22_6 with revision 2f0af37152. ( I found the revision number of the engine with flutter doctor -v)

The .gclient file looks like this:

solutions = [ {
"managed": False,
"name": "src/flutter",
"url": "git@github.com:Wooder/engine.git@2f0af37152",
"custom_deps": {},
"deps_file": "DEPS",
"safesync_url": "",
},
]

Unfortunately

gclient sync

failed with the following error message:

[0:00:26] 
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://dart.googlesource.com/ffi.git /Users/xxx/src//engine/src/third_party/dart/third_party/pkg/_gclient_ffi_y7bf76ee' in '/Users/xxx/src/engine'

[0:00:26] Cloning into '/Users/xxx/src/engine/src/third_party/dart/third_party/pkg/_gclient_ffi_y7bf76ee'...
[0:00:26] remote: Counting objects: 1   
[0:00:26] remote: Counting objects: 6, done
[0:00:26] Receiving objects:   0%% (1/397)
[0:00:26] Receiving objects:  10%% (40/397)
[0:00:26] remote: Total 397 (delta 169), reused 397 (delta 169)
[0:00:26] Receiving objects: 100%% (397/397)
[0:00:26] Resolving deltas:   0%% (0/169)
[0:00:26] Resolving deltas:  10%% (17/169)
[0:00:26] Resolving deltas: 100%% (169/169)
[0:00:27] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:00:27] fatal: the remote end hung up unexpectedly
[0:00:28] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:00:28] fatal: the remote end hung up unexpectedly
[0:00:29] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:00:29] fatal: the remote end hung up unexpectedly
[0:00:31] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:00:31] fatal: the remote end hung up unexpectedly
----------------------------------------
Error: Command 'git -c core.deltaBaseCacheLimit=2g fetch origin 454ab0f9ea6bd06942a983238d8a6818b1357edb --no-tags' returned non-zero exit status 128 in /Users/xxx/src/engine/src/third_party/dart/third_party/pkg/ffi


Warnings:
Conflicting directory /Users/xxx/src/engine/src/third_party/dart/third_party/pkg/ffi moved to /Users/xxx/src/engine/_bad_scm/src/third_party/dart/third_party/pkg/ffi24p469_3.

Issue 74139 seems to have a similar problem with dart/ffi

Who can help?

1 possible answer(s) on “gclient sync for flutter engine fails (third_party/dart/third_party/pkg/ffi ) with error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400

  1. Found the commit, will try to merge it into master.

    commit 454ab0f9ea6bd06942a983238d8a6818b1357edb
    Author: Daco Harkes <dacoharkes@google.com>
    Date:   Mon May 18 13:05:58 2020 +0200
    
        Update sdk constraint to enable NNBD strong mode
    
    diff --git a/pubspec.yaml b/pubspec.yaml
    index de57297..25a3aeb 100644
    --- a/pubspec.yaml
    +++ b/pubspec.yaml
    @@ -4,7 +4,7 @@ homepage: https://github.com/dart-lang/ffi
     description: Utilities for working with Foreign Function Interface (FFI) code.
     
     environment:
    -  sdk: '>=2.6.0 <3.0.0'
    +  sdk: '>=2.9.0 <3.0.0'
     
     # dependencies: