Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in check 9 :the JSON object must be str, not 'NoneType' #16

Open
jacontre-c opened this issue Feb 2, 2022 · 10 comments
Open

error in check 9 :the JSON object must be str, not 'NoneType' #16

jacontre-c opened this issue Feb 2, 2022 · 10 comments
Assignees
Labels
bug Something isn't working not Started Issue hasn't been worked on

Comments

@jacontre-c
Copy link
Collaborator

ERROR:the JSON object must be str, not 'NoneType'
Traceback (most recent call last):
File "sure.py", line 3821, in
es_indices_est = json.loads(getRequestpy3(version_tuple,vmanage_lo_ip, jsessionid, 'management/elasticsearch/index/size/estimate', args.vmanage_port, tokenid))
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))

@rukapse rukapse changed the title error in check 9 error in check 9 :the JSON object must be str, not 'NoneType' May 4, 2022
@rukapse
Copy link
Collaborator

rukapse commented May 11, 2022

Check if the API is retuning None.

@rukapse
Copy link
Collaborator

rukapse commented May 17, 2022

20.6 since getRequestpy3

@rukapse rukapse added bug Something isn't working question Further information is requested labels Sep 22, 2022
@rukapse
Copy link
Collaborator

rukapse commented Sep 23, 2022

API retrieving incorrect data.
After this scope should be able to use the API
https://cdetsng.cisco.com/summary/#/defect/CSCwa94955

Meanwhile, do curl to get ES Indices data

@rukapse rukapse added the not Started Issue hasn't been worked on label Sep 23, 2022
@ProsperousHeart
Copy link
Contributor

This is being worked on under internal Jira CEADETT-136. No ETA as of yet.

@rukapse
Copy link
Collaborator

rukapse commented Mar 8, 2023

@rukapse rukapse added assigned and removed not Started Issue hasn't been worked on labels Mar 8, 2023
@rukapse rukapse self-assigned this Mar 8, 2023
@rukapse
Copy link
Collaborator

rukapse commented Mar 8, 2023

Assigned to Harshal Khairnar, waiting for him to get a git account

@rukapse
Copy link
Collaborator

rukapse commented Mar 8, 2023

curl -XGET http://localhost:9200/_cat/indices/ -u elasticsearch:s3cureElast1cPass

@rukapse
Copy link
Collaborator

rukapse commented Mar 8, 2023

this is an example of approute

ELLY_vManage:~# curl -XGET http://localhost:9200/_cat/indices/ -u elasticsearch:s3cureElast1cpass | grep approute
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100green open approutestatsstatistics_2022_07_23t04_01_14 QLfttGEVQy6iPnnxzsvujw 1 0 36925132 0 8.7gb 8.7gb
10green open approutestatsstatistics_2022_07_24t15_46_14 Wp8QJitITLKOdFdpQNDqmA 1 0 22491734 0 5.3gb 5.3gb
24green open approutestatsstatistics_routing_summary_2022_07_28t12_31 SBcNHl1tQ7iVDIgZdqw7EA 1 0 75 0 35.6kb 35.6kb
0 100 1green open approutestatsstatistics_2022_07_25t12_01_14 hLrufu9yTtiN8XVnOTMWeQ 1 0 41307294 0 9.8gb 9.8gb
0240 0 0 29595 0 --:--:-- --:--:-- --:--:-- 29595
green open approutestatsstatistics_2022_07_27t22_01_14 oIJXgQjXTICm2lzgUcepiA 1 0 17208862 0 4.1gb 4.1gb
green open approutestatsstatistics_2022_07_27t00_16_14 RevGfK90QTmOpULGcJndKg 1 0 24616698 0 5.9gb 5.9gb
green open approutestatsstatistics_transport_summary_2022_07_28t12_31 o1Hv7lyJRqmt82VWHK1pyQ 1 0 744 0 109.8kb 109.8kb

add all accumulated in 1 day from the files like here each day 1 file created and size are 5-6 GB Approx

you see the date like 2022_07_23t04_01_14
so here you see only 1 file created in 1 day
sometime it will be 5 file created in 1 day , so we need to add the volume of all 5 and get estimate
today will be incomplete, it should be last 2-3 days and than average

DPI stopped from 20.6

@rukapse
Copy link
Collaborator

rukapse commented Mar 8, 2023

Example of DPI and approute

vmanage:~$ curl --connect-timeout 6 --silent -XGET localhost:9200/_cat/indices/ -u elasticsearch:s3cureElast1cPass
green open approutestatsstatistics_2022_09_19t07_03_07 Jvc7GtZZSq6cJEDXUUAYmg 1 0 0 0 191b 191b
green open devicesystemstatusstatistics_2022_09_19t07_03_06 HlRACN1DQM-rVNk7ucHO6Q 1 0 0 0 191b 191b
green open approutestatsstatistics_routing_summary_2022_09_23t03_45 EEO279MxRz66iuSEwA8Z6g 1 0 0 0 162b 162b
green open alarm_2022_09_19t07_03_08 l2-tpp55Rg-xIJvbsYdGBQ 1 0 0 0 191b 191b
green open dpistatistics_application_summary_2022_09_23t03_45 SNHiN8cTRui19CEvxdOidQ 1 0 0 0 162b 162b
green open bridgeinterfacestatistics_2022_09_19t07_03_07 KGp5zCqQRUeSq7e2LqftrQ 1 0 0 0 191b 191b
green open bridgemacstatistics_2022_09_19t07_03_07 zTRaukn6R2uIdpEGMRQiSA 1 0 0 0 191b 191b
green open deviceconfiguration_2022_09_19t07_03_06 hkqIJqIwTJqvH2UkinmbRw 1 0 0 0 191b 191b
green open cloudxstatistics_2022_09_19t07_03_08 c-qz5dndRna4OAOWH2RApQ 1 0 0 0 191b 191b
green open interfacestatistics_2022_09_19t07_03_06 NEwcP7Y8TzOFpfpvPydgQg 1 0 0 0 191b 191b
green open deviceevents_2022_09_19t07_03_07 fYJzqvt2RKuPRtRihQuRag 1 0 0 0 191b 191b
green open dpistatistics_2022_09_19t07_03_07 9vZLMb2tRZyqzYDrIt9jMg 1 0 0 0 191b 191b
green open speedtest_2022_09_19t07_03_08 crJj0Q0yQbO0AbmqhLMrgw 1 0 0 0 191b 191b
green open wlanclientinfostatistics_2022_09_19t07_03_07 c24jSiykQf6m3rIlFdh0kg 1 0 0 0 191b 191b
green open auditlog_2022_09_19t07_03_05 IodWkqmXSiiJAoGEKTh4aA 1 0 57 0 45.8kb 45.8kb
green open approutestatsstatistics_transport_summary_2022_09_23t03_45 R4MAgS34T6KCrr14oz_Iyg 1 0 75 0 24.3kb 24.3kb
green open flowlogstatistics_2022_09_19t07_03_08 KjXq0wYZS7ytb-qlGyl9Jw 1 0 0 0 191b 191b

@rukapse rukapse removed their assignment Mar 8, 2023
@rukapse rukapse removed the question Further information is requested label Mar 8, 2023
@rukapse rukapse added not Started Issue hasn't been worked on and removed assigned labels Mar 30, 2023
@rukapse rukapse self-assigned this Sep 14, 2023
@ssidoret
Copy link

Hi guys,

i have the same problem :
ERROR:the JSON object must be str, bytes or bytearray, not NoneType
Traceback (most recent call last):
File "py3_sure.py", line 2320, in
es_indices_est = json.loads(getRequestpy3(version_tuple,vmanage_lo_ip, jsessionid, 'management/elasticsearch/index/size/estimate', args.vmanage_port, tokenid))
File "/usr/lib/python3.8/json/init.py", line 341, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType

and i am not even able to run curl because of connection refused :

vManage:~$ curl -XGET http://localhost:9200/_cat/indices/ -u elasticsearch:s3cureElast1cpass | grep approute
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to localhost port 9200: Connection refused

Can you help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working not Started Issue hasn't been worked on
Projects
None yet
Development

No branches or pull requests

5 participants