Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

SyntaxError: JSON Parse error: Unexpected EOF

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
9 Replies
27252 Rodiniai
Portretas
Alex Gallien

EDIT: Figured out the issue here was likely with Ubuntu 14 and wkhtmltopdf, creating a new VM with Ubuntu 12 instead solved the problem.

 

I recently installed a new instance of OpenERP v7.0, and am getting an error when trying to install a custom report module: SyntaxError: JSON Parse error: Unexpected EOF:

Traceback (most recent call last):
  File "/opt/openerp/odoo/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/odoo/openerp/service/web_services.py", line 654, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/odoo/openerp/service/web_services.py", line 760, in exp_report_get
    return self._check_report(report_id)
  File "/opt/openerp/odoo/openerp/service/web_services.py", line 738, in _check_report
    netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
  File "/opt/openerp/odoo/openerp/netsvc.py", line 71, in abort_response
    raise openerp.osv.osv.except_osv(description, details)
except_osv: (u"list index out of rangeparagraph text u'<para></font></para>' caused exception\nhandle_pageBegin args=()", (<type 'exceptions.IndexError'>, IndexError("list index out of rangeparagraph text u'<para></font></para>' caused exception\nhandle_pageBegin args=()",), <traceback object at 0x7fd88ef03290>))

Any idea why this might be? It worked perfectly in my other instance. One thing that might have caused it is that I had a v7 saas-5 instance on the same server, but I removed the git repo and reinstalled. Should I nuke/pave the VM and try again? The other thing I noticed is that my old version (installed by someone else) is at Version 7.0-20131113-002526, where my new one says just Version 7.0 - not sure if that could be causing it too. Any insight would be greatly appriciated!

0
Portretas
Atmesti
Brett Lehrer

'' is invalid XML/HTML. Could be caused by a bug in the custom module that doesn't handle empty data sets well? Since you mentioned it's a new instance, I don't know how much data you've migrated into the server. I don't think nuking the VM is necessary. What's the custom module, and where's the source code for it?

Brett Lehrer

Note that my (para)(/font)(/para) tags were stripped from the beginning of the comment.

Alex Gallien
Autorius

http://pastebin.com/X5Z0xpex is the xml for one of my reports. There is another that is very similar. What is strange is that it is working on my old version 7 install, but that was done by someone else so I am not sure if there were some differences in the way that it was installed. I ran the code through an xml validator on w3 schools and it turned up with no errors. Really not sure what's going on here.

Portretas
Emon
Best Answer

Hi Guys,

I am facing the same issue. I am using Odoo7 on Ubuntu 14. It worked well when I am running the application on Ubuntu 12. Onc I shifted my application to Ubuntu 14, the sale order report is not loading and the email template in which sale order is attached, is showing the following error.

list index out of rangeparagraph text u'<para></font></para>' caused exception

 

When I am trying to download the sale order, it is showing the following error.


Uncaught SyntaxError: Unexpected end of JSON input


Can anybody help me with a solution.



Thank you.


Regards,

Emon.

0
Portretas
Atmesti
Portretas
Balvant Ramani
Best Answer


I also faced this error. Please help.

When i try to print invoice that has some special character(crotian language) in customer name. It gives me this.

"SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"

This is my log :

return self.app(environ, start_response)

File "/opt/odoo/openerp/http.py", line 1441, in dispatch

return response(environ, start_response)

File "/usr/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 1200, in __call__

app_iter, status, headers = self.get_wsgi_response(environ)

File "/usr/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 1190, in get_wsgi_response

return app_iter, self.status, headers.to_wsgi_list()

File "/usr/lib/python2.7/dist-packages/werkzeug/datastructures.py", line 1185, in to_wsgi_list

return [(k, v.encode('latin1')) for k, v in self]

UnicodeEncodeError: 'latin-1' codec can't encode characters in position 34-38: ordinal not in range(256)

0
Portretas
Atmesti
Portretas
Deepa Venkatesh
Best Answer

Check the .openerp-serverrc file... which will be present in Home folder(by default)...

You are trying to run Openerp 7 but your server is pointing to Odoo server...

0
Portretas
Atmesti
Alex Gallien
Autorius

Once I am in there how do I know which server it is pointing to? I don't see any fields that indicate that.

OdooBot

It is a hidden file... use control + H



From: Alex Gallien <agallien@informationofficer.com>;
To: deep <deepa4lok@yahoo.com>;
Subject: Re: False
Sent: Mon, Sep 15, 2014 5:45:52 PM

Once I am in there how do I know which server it is pointing to? I don't see any fields that indicate that.

----

Alex Gallien
Information Officer LLC

E-mail: agallien@informationofficer.com
Web: www.informationofficer.com

Sent by OpenERP S.A. using Odoo about Forum Post False
Alex Gallien
Autorius

I accessed the file without issue - I just don't know which of the fields tells me which server it is pointing to. I am beginning to think that it is my installation that is broken, so I am just going to start over. Thanks for the help though.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registracija
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now