BinaryONe commited on
Commit
279bd47
Β·
1 Parent(s): d263103

Nginx Changes-Over Alpine

Browse files
Dockerfile CHANGED
@@ -31,7 +31,7 @@ RUN mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.orig
31
 
32
  # Copy Nginx config
33
  #COPY www.privateone-teleapi.hf.space.conf /etc/nginx/conf.d/www.privateone-teleapi.hf.space.conf
34
- COPY /app/nginx-new.conf /etc/nginx/nginx.conf
35
 
36
  # Print the configuration files to the console (good addition)
37
  RUN cat /etc/nginx/nginx.conf && echo "--------------------"
 
31
 
32
  # Copy Nginx config
33
  #COPY www.privateone-teleapi.hf.space.conf /etc/nginx/conf.d/www.privateone-teleapi.hf.space.conf
34
+ COPY nginx.conf /etc/nginx/nginx.conf
35
 
36
  # Print the configuration files to the console (good addition)
37
  RUN cat /etc/nginx/nginx.conf && echo "--------------------"
Dockerfile copy β†’ Unused Codes/Dockerfile copy RENAMED
File without changes
default_conf.conf β†’ Unused Codes/default_conf.conf RENAMED
File without changes
nginx copy.conf β†’ Unused Codes/nginx copy.conf RENAMED
File without changes
Unused Codes/nginx.conf ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ worker_processes auto;
2
+ pcre_jit on;
3
+ error_log /var/log/nginx/error.log warn;
4
+ include /etc/nginx/modules/*.conf;
5
+
6
+ events {
7
+ worker_connections 1024;
8
+ }
9
+
10
+ http { # ONLY ONE http block here
11
+ include /etc/nginx/mime.types;
12
+ default_type application/octet-stream;
13
+ server_tokens off;
14
+ client_max_body_size 1m;
15
+ sendfile on;
16
+ tcp_nopush on;
17
+ ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
18
+ ssl_prefer_server_ciphers on;
19
+ ssl_session_cache shared:SSL:2m;
20
+ ssl_session_timeout 1h;
21
+ ssl_session_tickets off;
22
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
23
+ '$status $body_bytes_sent "$http_referer" '
24
+ '"$http_user_agent" "$http_x_forwarded_for"';
25
+ access_log /var/log/nginx/access.log main;
26
+ include /etc/nginx/conf.d/*.conf; # Include conf.d files HERE
27
+ }
www.privateone-teleapi.hf.space.conf β†’ Unused Codes/www.privateone-teleapi.hf.space.conf RENAMED
File without changes
nginx-new.conf DELETED
@@ -1,26 +0,0 @@
1
- user user;
2
- worker_processes auto;
3
- error_log /var/log/nginx/error.log warn;
4
- pid /var/run/nginx/nginx.pid;
5
- events {
6
- worker_connections 1024;
7
- }
8
-
9
- http {
10
- include /etc/nginx/mime.types;
11
- default_type application/octet-stream;
12
- sendfile on;
13
- access_log /var/log/nginx/access.log;
14
- keepalive_timeout 3000;
15
- server {
16
- listen 7860;
17
- root /www;
18
- index index.html index.htm;
19
- server_name localhost;
20
- client_max_body_size 32m;
21
- error_page 500 502 503 504 /50x.html;
22
- location = /50x.html {
23
- root /var/lib/nginx/html;
24
- }
25
- }
26
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
nginx.conf CHANGED
@@ -1,27 +1,26 @@
1
- worker_processes auto;
2
- pcre_jit on;
3
- error_log /var/log/nginx/error.log warn;
4
- include /etc/nginx/modules/*.conf;
5
-
6
  events {
7
- worker_connections 1024;
8
  }
9
 
10
- http { # ONLY ONE http block here
11
- include /etc/nginx/mime.types;
12
- default_type application/octet-stream;
13
- server_tokens off;
14
- client_max_body_size 1m;
15
- sendfile on;
16
- tcp_nopush on;
17
- ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
18
- ssl_prefer_server_ciphers on;
19
- ssl_session_cache shared:SSL:2m;
20
- ssl_session_timeout 1h;
21
- ssl_session_tickets off;
22
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
23
- '$status $body_bytes_sent "$http_referer" '
24
- '"$http_user_agent" "$http_x_forwarded_for"';
25
- access_log /var/log/nginx/access.log main;
26
- include /etc/nginx/conf.d/*.conf; # Include conf.d files HERE
27
- }
 
1
+ user user;
2
+ worker_processes auto;
3
+ error_log /var/log/nginx/error.log warn;
4
+ pid /var/run/nginx/nginx.pid;
 
5
  events {
6
+ worker_connections 1024;
7
  }
8
 
9
+ http {
10
+ include /etc/nginx/mime.types;
11
+ default_type application/octet-stream;
12
+ sendfile on;
13
+ access_log /var/log/nginx/access.log;
14
+ keepalive_timeout 3000;
15
+ server {
16
+ listen 7860;
17
+ root /www;
18
+ index index.html index.htm;
19
+ server_name localhost;
20
+ client_max_body_size 32m;
21
+ error_page 500 502 503 504 /50x.html;
22
+ location = /50x.html {
23
+ root /var/lib/nginx/html;
24
+ }
25
+ }
26
+ }
streambot.log DELETED
@@ -1,407 +0,0 @@
1
- [16/09/2024 21:08:11] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
2
- Traceback (most recent call last):
3
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 350, in data_received
4
- messages, upgraded, tail = self._request_parser.feed_data(data)
5
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
- File "aiohttp\\_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
7
- aiohttp.http_exceptions.BadStatusLine: 400, message:
8
- Invalid method encountered:
9
-
10
- bytearray(b'\x16\x03\x01')
11
- ^
12
- [16/09/2024 21:08:18] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
13
- Traceback (most recent call last):
14
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 350, in data_received
15
- messages, upgraded, tail = self._request_parser.feed_data(data)
16
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
- File "aiohttp\\_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
18
- aiohttp.http_exceptions.BadStatusLine: 400, message:
19
- Invalid method encountered:
20
-
21
- bytearray(b'\x16\x03\x01')
22
- ^
23
- [16/09/2024 21:09:12] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
24
- [16/09/2024 21:12:50] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
25
- [16/09/2024 21:28:38] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
26
- Traceback (most recent call last):
27
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
28
- resp = await request_handler(request)
29
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
31
- resp = await handler(request)
32
- ^^^^^^^^^^^^^^^^^^^^^^
33
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 105, in list_all_files
34
- return web.Response(dumps(resp))
35
- ^^^^^^^^^^^^^^^^^^^^^^^^^
36
- TypeError: Response.__init__() takes 1 positional argument but 2 were given
37
- [16/09/2024 21:30:48] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
38
- [16/09/2024 21:34:39] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
39
- [16/09/2024 21:35:42] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
40
- Traceback (most recent call last):
41
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
42
- resp = await request_handler(request)
43
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
45
- resp = await handler(request)
46
- ^^^^^^^^^^^^^^^^^^^^^^
47
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
48
- resp=[{
49
- ^^
50
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
51
- "id": str(row['_id']['$oid']),
52
- ~~~~~~~~~~^^^^^^^^
53
- TypeError: 'ObjectId' object is not subscriptable
54
- [16/09/2024 21:36:20] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
55
- Traceback (most recent call last):
56
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
57
- resp = await request_handler(request)
58
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
60
- resp = await handler(request)
61
- ^^^^^^^^^^^^^^^^^^^^^^
62
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
63
- resp=[{
64
- ^^
65
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
66
- "id": str(row['_id']),
67
- ^^^^^^^^^^^^^
68
- TypeError: 'ObjectId' object is not subscriptable
69
- [16/09/2024 21:37:13] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
70
- Traceback (most recent call last):
71
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
72
- resp = await request_handler(request)
73
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
75
- resp = await handler(request)
76
- ^^^^^^^^^^^^^^^^^^^^^^
77
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
78
- resp=[{
79
- ^^
80
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
81
- "id": str(ObjectId(row['_id'])),
82
- ^^^^^^^^^^^^^^^^^^
83
- TypeError: 'ObjectId' object is not subscriptable
84
- [16/09/2024 21:42:07] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
85
- Traceback (most recent call last):
86
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
87
- resp = await request_handler(request)
88
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
90
- resp = await handler(request)
91
- ^^^^^^^^^^^^^^^^^^^^^^
92
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
93
- resp=[{
94
- ^^
95
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
96
- "id": str(row['_id']['to_string']),
97
- ^^^^^^^^^^^^^^^^^^
98
- TypeError: 'ObjectId' object is not subscriptable
99
- [16/09/2024 21:43:00] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
100
- Traceback (most recent call last):
101
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
102
- resp = await request_handler(request)
103
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
105
- resp = await handler(request)
106
- ^^^^^^^^^^^^^^^^^^^^^^
107
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
108
- resp=[{
109
- ^^
110
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
111
- "id": row['_id'].to_dict(),
112
- ^^^^^^^^^^^^^^^^^^
113
- TypeError: 'ObjectId' object is not subscriptable
114
- [16/09/2024 21:44:12] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
115
- Traceback (most recent call last):
116
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
117
- resp = await request_handler(request)
118
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
120
- resp = await handler(request)
121
- ^^^^^^^^^^^^^^^^^^^^^^
122
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
123
- resp=[{
124
- ^^
125
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
126
- "id": row['_id'].oid,
127
- ^^^^^^^^^^^^
128
- TypeError: 'ObjectId' object is not subscriptable
129
- [16/09/2024 21:47:21] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
130
- Traceback (most recent call last):
131
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
132
- resp = await request_handler(request)
133
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
135
- resp = await handler(request)
136
- ^^^^^^^^^^^^^^^^^^^^^^
137
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
138
- resp=[{
139
- ^^
140
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
141
- "id": row["_id"],
142
- ^^^^^^^^
143
- TypeError: 'ObjectId' object is not subscriptable
144
- [16/09/2024 21:47:49] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
145
- Traceback (most recent call last):
146
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
147
- resp = await request_handler(request)
148
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
150
- resp = await handler(request)
151
- ^^^^^^^^^^^^^^^^^^^^^^
152
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
153
- resp=[{
154
- ^^
155
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
156
- "id": row["id"],
157
- ^^^^^^^
158
- TypeError: 'ObjectId' object is not subscriptable
159
- [16/09/2024 21:48:17] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
160
- Traceback (most recent call last):
161
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
162
- resp = await request_handler(request)
163
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
164
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
165
- resp = await handler(request)
166
- ^^^^^^^^^^^^^^^^^^^^^^
167
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
168
- resp=[{
169
- ^^
170
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
171
- "id": row["oid"],
172
- ^^^^^^^^
173
- TypeError: 'ObjectId' object is not subscriptable
174
- [16/09/2024 21:48:38] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
175
- Traceback (most recent call last):
176
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
177
- resp = await request_handler(request)
178
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
179
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
180
- resp = await handler(request)
181
- ^^^^^^^^^^^^^^^^^^^^^^
182
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
183
- resp=[{
184
- ^^
185
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
186
- "id": row["$oid"],
187
- ^^^^^^^^^
188
- TypeError: 'ObjectId' object is not subscriptable
189
- [16/09/2024 21:49:09] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
190
- Traceback (most recent call last):
191
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
192
- resp = await request_handler(request)
193
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
194
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
195
- resp = await handler(request)
196
- ^^^^^^^^^^^^^^^^^^^^^^
197
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
198
- resp=[{
199
- ^^
200
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
201
- "id": row['_id']["$oid"],
202
- ^^^^^^^^^^^^^^^^
203
- TypeError: 'ObjectId' object is not subscriptable
204
- [16/09/2024 21:51:55] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
205
- [16/09/2024 21:52:52] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
206
- Traceback (most recent call last):
207
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
208
- resp = await request_handler(request)
209
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
210
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
211
- resp = await handler(request)
212
- ^^^^^^^^^^^^^^^^^^^^^^
213
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
214
- resp=[{
215
- ^^
216
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
217
- "id": row['_id'].toString(),
218
- ^^^^^^^^^^^^^^^^^^^
219
- AttributeError: 'ObjectId' object has no attribute 'toString'
220
- [16/09/2024 21:54:36] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
221
- Traceback (most recent call last):
222
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
223
- resp = await request_handler(request)
224
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
225
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
226
- resp = await handler(request)
227
- ^^^^^^^^^^^^^^^^^^^^^^
228
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
229
- resp=[{
230
- ^^
231
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
232
- "id": str(row._id),
233
- ^^^^^^^^^^^^^^
234
- AttributeError: 'ObjectId' object has no attribute 'toString'
235
- [16/09/2024 21:54:53] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
236
- [16/09/2024 21:55:27] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
237
- Traceback (most recent call last):
238
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
239
- resp = await request_handler(request)
240
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
241
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
242
- resp = await handler(request)
243
- ^^^^^^^^^^^^^^^^^^^^^^
244
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
245
- resp=[{
246
- ^^
247
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
248
- "id": str(row._id),
249
- ^^^^^^^
250
- AttributeError: 'dict' object has no attribute '_id'
251
- [16/09/2024 21:57:41] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
252
- Traceback (most recent call last):
253
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
254
- resp = await request_handler(request)
255
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
256
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
257
- resp = await handler(request)
258
- ^^^^^^^^^^^^^^^^^^^^^^
259
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
260
- resp=[{
261
- ^^
262
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
263
- "id": str(row['_id'] * type(row['_id']) * row['id'].__dict__),
264
- ^^^^^^^
265
- AttributeError: 'dict' object has no attribute '_id'
266
- [16/09/2024 21:58:13] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
267
- Traceback (most recent call last):
268
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
269
- resp = await request_handler(request)
270
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
271
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
272
- resp = await handler(request)
273
- ^^^^^^^^^^^^^^^^^^^^^^
274
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
275
- resp=[{
276
- ^^
277
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
278
- "id": str(row['_id'] * type(row['_id']) * row['_id'].__dict__),
279
- ^^^^^^^
280
- AttributeError: 'dict' object has no attribute '_id'
281
- [16/09/2024 21:59:00] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
282
- [16/09/2024 21:59:51] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
283
- Traceback (most recent call last):
284
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
285
- resp = await request_handler(request)
286
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
287
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
288
- resp = await handler(request)
289
- ^^^^^^^^^^^^^^^^^^^^^^
290
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
291
- resp=[{
292
- ^^
293
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
294
- "id": str(row['_id'] +"\n"+ type(row['_id']) +"\n"+ row['_id'].__dict__),
295
- ~~~~~~~~~~~^~~~~
296
- TypeError: unsupported operand type(s) for +: 'ObjectId' and 'str'
297
- [16/09/2024 22:00:36] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
298
- Traceback (most recent call last):
299
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
300
- resp = await request_handler(request)
301
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
302
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
303
- resp = await handler(request)
304
- ^^^^^^^^^^^^^^^^^^^^^^
305
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
306
- resp=[{
307
- ^^
308
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
309
- "id": str(row['_id'] )+"*"+ type(row['_id']) +"*"+ row['_id'].__dict__,
310
- ^^^^^^^^^^^^^^^^
311
- TypeError: unsupported operand type(s) for +: 'ObjectId' and 'str'
312
- [16/09/2024 22:01:17] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
313
- Traceback (most recent call last):
314
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
315
- resp = await request_handler(request)
316
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
317
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
318
- resp = await handler(request)
319
- ^^^^^^^^^^^^^^^^^^^^^^
320
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
321
- resp=[{
322
- ^^
323
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
324
- "id": str(type(row['_id'])),
325
- ^^^^^^^^^^^^^^^^
326
- TypeError: unsupported operand type(s) for +: 'ObjectId' and 'str'
327
- [16/09/2024 22:08:40] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
328
- [16/09/2024 22:15:21] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
329
- [16/09/2024 22:16:08] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
330
- Traceback (most recent call last):
331
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
332
- resp = await request_handler(request)
333
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
334
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
335
- resp = await handler(request)
336
- ^^^^^^^^^^^^^^^^^^^^^^
337
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
338
- resp=[{
339
- ^^
340
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
341
- "id": str(type(row['_id'].oid)),
342
- ^^^^^^^^^^^^^^
343
- AttributeError: 'ObjectId' object has no attribute 'oid'
344
- [16/09/2024 22:20:48] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
345
- [16/09/2024 22:21:17] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
346
- Traceback (most recent call last):
347
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
348
- resp = await request_handler(request)
349
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
350
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
351
- resp = await handler(request)
352
- ^^^^^^^^^^^^^^^^^^^^^^
353
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
354
- resp=[{
355
- ^^
356
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
357
- "id": str(type(row._id.valueOf())),
358
- ^^^^^^^
359
- AttributeError: 'dict' object has no attribute '_id'
360
- [16/09/2024 22:21:47] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
361
- Traceback (most recent call last):
362
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
363
- resp = await request_handler(request)
364
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
365
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
366
- resp = await handler(request)
367
- ^^^^^^^^^^^^^^^^^^^^^^
368
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
369
- resp=[{
370
- ^^
371
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
372
- "id": str(type(row['_id'].valueOf())),
373
- ^^^^^^^
374
- AttributeError: 'dict' object has no attribute '_id'
375
- [16/09/2024 22:22:04] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
376
- [16/09/2024 22:23:13] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
377
- Traceback (most recent call last):
378
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
379
- resp = await request_handler(request)
380
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
381
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
382
- resp = await handler(request)
383
- ^^^^^^^^^^^^^^^^^^^^^^
384
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
385
- resp=[{
386
- ^^
387
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
388
- "id": str(type(row['_id'].valueOf())),
389
- ^^^^^^^^^^^^^^^^^^
390
- AttributeError: 'ObjectId' object has no attribute 'valueOf'
391
- [16/09/2024 22:24:25] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...
392
- [16/09/2024 22:26:07] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py:421} ERROR - Error handling request
393
- Traceback (most recent call last):
394
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
395
- resp = await request_handler(request)
396
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
397
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
398
- resp = await handler(request)
399
- ^^^^^^^^^^^^^^^^^^^^^^
400
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 84, in list_all_files
401
- resp=[{
402
- ^^
403
- File "C:\Files\Codes\Python\TelegramBots\TelegramAPI\FileStream\server\routes_api.py", line 92, in <listcomp>
404
- "id": str(row['_id'].value ),
405
- ^^^^^^^^^^^^^^^^
406
- AttributeError: 'ObjectId' object has no attribute 'value'
407
- [16/09/2024 22:30:30] {C:\Files\Codes\Python\TelegramBots\TelegramAPI\TelegramENV\Lib\site-packages\pyrogram\methods\utilities\idle.py:76} INFO - Stop signal received (SIGINT). Exiting...