My assumption, according to https://stackoverflow.com/questions/33295733/utf8-codec-cant-decode-byte-0xe4-invalid-continuation-byte-in-timezone is, that you use German "ä" letter somewhere. Probably your local timezone is "Mitteleuropäische Zeit" which can be displayed by Instagram somewhere in the embed code, and on production the timezone is different or language is just English.
W dniu sobota, 13 października 2018 16:40:45 UTC+2 użytkownik Mikko napisał: > > Hi, > > I'm trying to embed Instagram to my development site by using a Instagram > embedding code, but when I add it to my html, I get the error below. > > I would appreciate a lot if someone could help me to understand the error > and solve the problem. > > Best regards, > > - Mikko > > UnicodeDecodeError at /news/ > > 'utf-8' codec can't decode byte 0xe4 in position 7333: invalid continuation > byte > > Request Method: GET > Request URL: http://127.0.0.1:8000/news/ > Django Version: 2.1 > Exception Type: UnicodeDecodeError > Exception Value: > > 'utf-8' codec can't decode byte 0xe4 in position 7333: invalid continuation > byte > > Exception Location: C:\Users\Mikko\django-project\lib\codecs.py in > decode, line 321 > Python Executable: C:\Users\Mikko\django-project\Scripts\python.exe > Python Version: 3.6.4 > Python Path: > > ['C:\\Users\\Mikko\\django-project\\topi', > 'C:\\Users\\Mikko\\django-project\\Scripts\\python36.zip', > 'C:\\Users\\Mikko\\django-project\\DLLs', > 'C:\\Users\\Mikko\\django-project\\lib', > 'C:\\Users\\Mikko \\django-project\\Scripts', > 'c:\\python36-32\\Lib', > 'c:\\python36-32\\DLLs', > 'C:\\Users\\Mikko\\django-project', > 'C:\\Users\\Mikko\\django-project\\lib\\site-packages'] > > Server time: Sat, 13 Oct 2018 14:25:38 +0000 > Unicode error hint > > The string that could not be encoded/decoded was: *;"> N�yt� t* > Error during template rendering > > In template > C:\Users\Mikko\django-project\topi\news\templates\news\home.html, error > at line *1* > utf-8 > 1 {% extends 'news/base.html' %} > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/70799ea4-f99a-409b-84bc-baff510046f6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.