目前,我在Git(bitbucket repo)上遇到问题,试图拉动git变化。我真的不熟悉这样的问题。请帮我。我正在分享问题的错误日志。所以,请为我提供正确的解决方案。
消息:invalid advertisement of <!DOCTYPE html>
异常Stacktrace:
org.eclipse.core.runtime.CoreException: invalid advertisement of <!DOCTYPE html>
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:102)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.run(FetchOperationUI.java:117)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: org.eclipse.jgit.api.errors.TransportException: invalid advertisement of <!DOCTYPE html>
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
... 2 more
Caused by: org.eclipse.jgit.errors.PackProtocolException: invalid advertisement of <!DOCTYPE html>
at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.invalidAdvertisement(TransportHttp.java:714)
at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.readAdvertisedImpl(TransportHttp.java:680)
at org.eclipse.jgit.transport.TransportHttp.newDumbConnection(TransportHttp.java:339)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:319)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1105)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
... 4 more
答案 0 :(得分:1)
我也有类似的问题。在我的情况下,Git服务器具有以下响应:
invalid advertisement of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
正如建议的那样,我在浏览器中输入了Git存储库URL,响应为:
The password to the repository is expired.
设置新密码后,问题已解决。