New Endevor Bridge for Git (B4G) installation.
Endevor Bridge for Git (B4G) mapping activity shows message:
Unable to fetch Bridge for Git App Activity for repository ##.##.#.# because of error:
fetch failed.
When using “Add to mapping” for an element under “Bridge for Git Explorer” it shows message:
Add element into mapping error: fetch failed with details: undefined.
The git-bridge.log file also contains:
===
2024-01-11 15:35:02.815 INFO 12472 --- [http-nio-8040-exec-1] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x000xf00x010x000x000xec0x030x030x1f0xba0x81:0xc50x01P0xeff0xde0xcb0xf40x850xac0xfe0xc7g0x180xd6k0xfbn0x81A0x090x030xa30xa6B0xb80x960 ]. HTTP method names must be tokens
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:407)
...
at java.base/java.lang.Thread.run(Thread.java:834)
===
Also running zowe cli to perform the same "Add to mapping" fails:
zowe endevor-bridge-for-git mapping add-element MY-CONTEXT MY-MAPPING --name MY-ELEMENT-NAME --type MY-ELEMENT-TYPE
===
Command Error:
http(s) request error event called
Error Details:
HTTP(S) client encountered an error. Request could not be initiated to host.
Review connection details (host, port) and ensure correctness.
Protocol: https
Host: ##.##.#.#
Port: 8040
Base Path: rest/evcs/v1
Resource: repositories?context=Non-Tech-DOT&repository=XXXXXXXXXXXX&search=false
Request: GET
Headers: [{"Content-Type":"application/json"},{"Accept":"application/json"}]
Payload: undefined
===
The git_bridge.log contains the same "HTTP method names must be tokens" exception.
There was an http/https conflict.
For initial testing, B4G is running on a Windows server with http and not https, but the config files were using https.
After changing the config files to use http, the add element to mapping was successful.
The "HTTP method names must be tokens" exception could also be caused when an http client (Zowe CLI or B4G Explorer extension) is trying to use an https enabled connection.