Hi Cesar,

I've found the cause of error :  "JWT_PUBLIC_SIGNING_JWK_SET" parameter . 

Originally,  in ecommerce.yml file the value of  JWT_PUBLIC_SIGNING_JWK_SET 
is set to "null" but lms:env.json it is set to "None". 

In lms:env.json  I've set * "JWT_PUBLIC_SIGNING_JWK_SET": null *. 

Now I can able to create and update a course on ecommerce . I don't know 
the technical background (just an assumption) i think "None" passes an 
empty key/token and therefore lms gives an error ValueError("No JSON object 
could be decoded"). 

Thank you for your help.

On Wednesday, July 10, 2019 at 11:14:04 PM UTC+3, Cesar Augusto Palacios 
Alarcón wrote:
>
> okay, 
>
> the error is in deployment the demo course.
>
> if execute.
>
> - /edx/bin/supervisorctl status
>
> running service or not running
>
> try the configuration:
>
> Virtual Box Host with : 
> Ubuntu 16.04 
> 8 GB RAM
> 2 vCPU
> 50 GB Disk
> and swap 4 GB 
>
> for install open-release/ironwood.master
>
> El mié., 10 jul. 2019 a las 14:57, Şükrü Kocakaya (<sukru....@gmail.com 
> <javascript:>>) escribió:
>
>> Hi Cesar, 
>>
>> Virtual Box Host with : 
>> Ubuntu 16.04 
>> 8.5GB RAM
>> 1 vCPU
>> 24GB Disk 
>>
>>
>> It seems that although ecommerce site is registered as a trusted client , 
>> LMS OAUTH2 still checks for JWT . When ecommerce throws the exception 
>> "*Error! 
>> Failed to publish commerce data for course-v1:edX+DemoX+Demo_Course to 
>> LMS.",*   *LMS throws (which should be called by ecommerce for course 
>> update)  "ValueError: No JSON object could be decoded"*
>>
>> LMS trace is the following : 
>>
>>
>> Jul  9 00:10:57 edx-Iron1 [service_variant=lms][django.
>> request][env:sandbox] ERROR [edx-Iron1  2424] [exception.py:135] - 
>> Internal Server Error: 
>> /api/commerce/v1/courses/course-v1:edX+DemoX+Demo_Course/
>>
>> Traceback (most recent call last):
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/exception.py",
>>  
>> line 41, in inner
>>     response = get_response(request)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py",
>>  
>> line 249, in _legacy_get_response
>>     response = self._get_response(request)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py",
>>  
>> line 187, in _get_response
>>     response = self.process_exception_by_middleware(e, request)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py",
>>  
>> line 185, in _get_response
>>     response = wrapped_callback(request, *callback_args, 
>> **callback_kwargs)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py",
>>  
>> line 185, in inner
>>     return func(*args, **kwargs)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py",
>>  
>> line 58, in wrapped_view
>>     return view_func(*args, **kwargs)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/generic/base.py",
>>  
>> line 68, in view
>>     return self.dispatch(request, *args, **kwargs)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py",
>>  
>> line 489, in dispatch
>>     response = self.handle_exception(exc)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py",
>>  
>> line 449, in handle_exception
>>     self.raise_uncaught_exception(exc)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py",
>>  
>> line 477, in dispatch
>>     self.initial(request, *args, **kwargs)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py",
>>  
>> line 394, in initial
>>     self.perform_authentication(request)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py",
>>  
>> line 320, in perform_authentication
>>     request.user
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/request.py",
>>  
>> line 378, in __getattribute__
>>     return super(Request, self).__getattribute__(attr)
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/request.py",
>>  
>> line 196, in user
>>     self._authenticate()
>>   File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/request.py",
>>  
>> line 342, in _authenticate
>>     user_auth_tuple = authenticator.authenticate(self)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *  File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/edx_rest_framework_extensions/auth/jwt/authentication.py",
>>  
>> line 47, in authenticate    return super(JwtAuthentication, 
>> self).authenticate(request)  File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework_jwt/authentication.py",
>>  
>> line 33, in authenticate    payload = jwt_decode_handler(jwt_value)  File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/edx_rest_framework_extensions/auth/jwt/decoder.py",
>>  
>> line 57, in jwt_decode_handler    _verify_jwt_signature(token, jwt_issuer)  
>> File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/edx_rest_framework_extensions/auth/jwt/decoder.py",
>>  
>> line 137, in _verify_jwt_signature    key_set = 
>> _get_signing_jwk_key_set(jwt_issuer)  File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/edx_rest_framework_extensions/auth/jwt/decoder.py",
>>  
>> line 189, in _get_signing_jwk_key_set    
>> key_set.load_jwks(signing_jwk_set)  File 
>> "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/jwkest/jwk.py",
>>  
>> line 776, in load_jwks    self.load_dict(json.loads(jwks))  File 
>> "/usr/lib/python2.7/json/__init__.py", line 339, in loads    return 
>> _default_decoder.decode(s)  File "/usr/lib/python2.7/json/decoder.py", line 
>> 364, in decode    obj, end = self.raw_decode(s, idx=_w(s, 0).end())  File 
>> "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode    raise 
>> ValueError("No JSON object could be decoded")ValueError: No JSON object 
>> could be decoded*
>>
>> On Wednesday, July 10, 2019 at 10:44:20 PM UTC+3, Cesar Augusto Palacios 
>> Alarcón wrote:
>>>
>>> okay,
>>>
>>> what is your configuration the machine example:
>>>
>>> - Memory RAM
>>> - Sockets process
>>> - storage
>>>
>>> and
>>>
>>> system operative using
>>>
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "General Open edX discussion" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to edx-...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/edx-code/9c3a4957-cf2a-4de3-bd28-6d1c3e809850%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/edx-code/9c3a4957-cf2a-4de3-bd28-6d1c3e809850%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
>
> ​​
> Cordialmente,
>
>
> *César Augusto Palacios Alarcón*
> Administrador de Sistemas Informáticos
> Universidad Nacional de Colombia
> Matricula Profesional: 17105-042058 CLD
> Tel (57)-321-798-2082
>
>
>
> *AVISO DE CONFIDENCIALIDAD: *
> *Este correo electrónico, incluyendo los archivos adjuntos al mismo, puede 
> contener información de carácter confidencial y/o privilegiada, y se envía 
> exclusivamente a la persona y/o entidad a quien va dirigido. La copia, 
> revisión, uso, revelación y/o distribución de dicha 
> información confidencial sin la autorización por escrito del titular de 
> esta cuenta de correo, está prohibida. Si usted no es el destinatario a 
> quien se dirige el presente correo, favor contactar al remitente 
> respondiendo el presente correo y eliminar el correo original incluyendo 
> sus archivos, así como cualquier copia del mismo. Mediante la recepción del 
> presente correo usted reconoce y acepta que en caso de incumplimiento de su 
> parte y/o de sus representantes a los términos antes mencionados, el 
> titular de esta cuenta tendrá derecho a los daños y perjuicios que este le 
> cause.*
>
> --------------- 
>
> *No imprima este correo a menos que sea absolutamente necesario.* 
>
> *El medio ambiente es responsabilidad de todos.*
>

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to edx-code+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/825f87c8-3083-4e59-8adb-cf61c0947f49%40googlegroups.com.

Reply via email to