user1679: cardano-cli --version
cardano-cli 1.27.0 - linux-x86_64 - ghc-8.10
git rev d870347b48c8ba0a81566876153eff23fce3ec64

cardano-cli query tip --mainnet
cardano-cli: QueryEncoderUnsupportedQuery Query GetSystemStart TopLevelQueryDisabled

I'm trying to get the current tip(slot) for my my transaction ttl.
eidt:
cardano-cli query tip --shelley-mode --mainnet
Command failed: query tip  Error: Unsupported mode: ShelleyMode

after i added --shelley-mode flag, it still doesn't work.

user252: You're not using the release version, which - for 1.27.0 (current mainnet) - is 8fe46140a52810b6ca456be01d652ca08fe730bf.
Using commits later than current stable release should only be done if you're sure if a specific commit is compatible and works - and should be done on testnet instead

1679: <pre><code>cardano-cli --version
cardano-cli 1.27.0 - linux-x86_64 - ghc-8.10
git rev d870347b48c8ba0a81566876153eff23fce3ec64

cardano-cli query tip --mainnet
cardano-cli: QueryEncoderUnsupportedQuery Query GetSystemStart TopLevelQueryDisabled
</code></pre>
<p>I'm trying to get the current tip(slot) for my my transaction ttl.</p>
<p>eidt:</p>
<pre><code>cardano-cli query tip --shelley-mode --mainnet
Command failed: query tip  Error: Unsupported mode: ShelleyMode
</code></pre>
<p>after i added --shelley-mode flag, it still doesn't work.</p>
 252: <p>You're not using the <a href="https://github.com/input-output-hk/cardano-node/releases/latest" rel="nofollow noreferrer">release version</a>, which - for 1.27.0 (current mainnet) - is <code>8fe46140a52810b6ca456be01d652ca08fe730bf</code>.</p>
<p>Using commits later than current stable release should <em>only</em> be done if you're sure if a specific commit is compatible and works - and should be done on testnet instead</p>
