Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Problem with pipelines deploy to Azure App service

Mike Howarth _Administrator_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 13, 2023

During the deployment phase of the pipeline the az login succeeds but the deploy command  seems to be return invalid json(see below)

No changes have been made to the pipelines yaml config file since the last successful deploy. The previous successful deploy was only 1 hour prior to the failed deploy.

Any help would be appreciated.

az webapp deployment .....
ERROR: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in execute
raise ex
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 386, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 379, in _run_job
six.reraise(*sys.exc_info())
File "/usr/local/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 356, in _run_job
result = cmd_copy(params)
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 171, in __call__
return self.handler(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 441, in default_command_handler
return op(**command_args)
File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 271, in enable_zip_deploy
response = _check_zip_deployment_status(deployment_status_url, authorization, timeout)
File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 2054, in _check_zip_deployment_status
res_dict = response.json()
File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 889, in json
self.content.decode(encoding), **kwargs
File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2 answers

0 votes
Bluts Band
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 5, 2024

I appreciate the response.

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 13, 2023

@Mike Howarth _Administrator_ hi. Don't know exactly how to solve your initial problem.

But have you tried to use Bitbucket Pipes for Azure?

Maybe some of them will cover your case.

Regards, Igor

mikehowarth
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 13, 2023

Thanks Igor. As it happens the pipeline has stated working again without any action from ourselves so it looks like it was an issue with Pipelines yesterday.

I have been successfully using the microsoft/azure-web-apps-deploy pipe from Bitbucket Pipes for Azure for deployment to azure app services for several years now but after following your link I see their is a new version (1.1.0) rather than the older 1.0.3 that I have been using). Thanks for that suggestion.

I appreciate the response Igor, thanks once again.

Like Igor Stoyanov likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events