Upgrade Consul from 0.4.0 to 1.8.7

I recently upgraded my base system to Ubuntu 22 from 14. So my consul is also upgraded to 1.8.7. Now I am getting errors like,
node231 consul[206769]: 2023-01-12T06:22:56.783Z [WARN] agent: error getting server health from server: server=node231 error=“rpc error getting client: failed to get conn: dial tcp 10.142.0.39:0->10.142.0.39:8300: i/o timeout”
node231 consul[206769]:
2023-01-12T06:23:03.160Z [ERROR] agent.http: Request error: method=GET url=/v1/agent/check/fail/service:puppet from=127.0.0.1:55702 error=“method GET not allowed”
I read in a forum that I have to use PUT instead of GET. Can you help me how to resolve this error?
My consul info shows,

agent:
check_monitors = 0
check_ttls = 2
checks = 2
services = 2
build:
prerelease =
revision =
version = 1.8.7
consul:
acl = disabled
bootstrap = true
known_datacenters = 1
leader = true
leader_addr = 10.142.0.39:8300
server = true
raft:
applied_index = 51
commit_index = 51
fsm_pending = 0
last_contact = 0
last_log_index = 51
last_log_term = 2
last_snapshot_index = 0
last_snapshot_term = 0
latest_configuration = [{Suffrage:Voter ID:c3b23645-fbf1-4a29-3497-d6cccb7d0941 Address:10.142.0.39:8300}]
latest_configuration_index = 0
num_peers = 0
protocol_version = 3
protocol_version_max = 3
protocol_version_min = 0
snapshot_version_max = 1
snapshot_version_min = 0
state = Leader
term = 2
runtime:
arch = amd64
cpu_count = 32
goroutines = 77
max_procs = 32
os = linux
version = go1.17
serf_lan:
coordinate_resets = 0
encrypted = true
event_queue = 1
event_time = 2
failed = 0
health_score = 0
intent_queue = 0
left = 0
member_time = 1
members = 1
query_queue = 0
query_time = 1
serf_wan:
coordinate_resets = 0
encrypted = true
event_queue = 0
event_time = 1
failed = 0
health_score = 0
intent_queue = 0
left = 0
member_time = 1
members = 1
query_queue = 0
query_time = 1

If you have already read the answer, what is it you are looking for help with?

I am new to consul. I upgraded my base system to ubuntu22 and consul is not working as before. As the consul is upgraded to 1.8.7 already, do I have to take care of any configs to make it work?