-
Notifications
You must be signed in to change notification settings - Fork 229
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
RPCInternalError: <RPCFault -32603: 'Internal error.' (None)> #47
Comments
i had the same error trying to parse arabic text |
I had same issue, when I parse semeval 2010 , sentence is "A normal beer is 8 zlots (2 euros) and a beer with raspberry syrup is 9 zlots.". File "", line 1, in File "/home/user/workspace/python/tensorflow-rnn/loadData_semeval.py", line 65, in parse File "stanfordenlp/jsonrpc.py", line 934, in call File "stanfordenlp/jsonrpc.py", line 907, in __req File "stanfordenlp/jsonrpc.py", line 626, in loads_response RPCInternalError: <RPCFault -32603: 'Internal error.' (None)> |
when I run client.py on version 3.4.1 of stanfordNLP I get the same error. this is the error I got. thanks for any help. b'{"jsonrpc": "2.0", "method": "parse", "params": ["Hello world It is so beautiful"], "id": 0}' for the code is here: look at section: #!/usr/bin/env python -- coding: ascii --""" It consists of 3 (independent) parts: It's intended for JSON-RPC, but since the above 3 parts are independent, Currently, JSON-RPC 2.0(pre) and JSON-RPC 1.0 are implemented :Version: 2008-08-31-beta :Example:
:Note: all exceptions derived from RPCFault are propagated to the client. :Author: Roland Koebler (rk(at)simple-is-better.org) TODO: version = "2008-08-31-beta" Permission is hereby granted, free of charge, to any person obtaining The above copyright notice and this permission notice shall be included THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, #========================================= import sys try: #========================================= errors#---------------------- error-codes + exceptions#JSON-RPC 2.0 error-codes #additional error-codes #human-readable messages
#---------------------- exceptionsclass RPCError(Exception): class RPCTransportError(RPCError): class RPCFault(RPCError):
class RPCParseError(RPCFault): class RPCInvalidRPC(RPCFault): class RPCMethodNotFound(RPCFault): class RPCInvalidMethodParams(RPCFault): class RPCInternalError(RPCFault): class RPCProcedureException(RPCFault): #========================================= data structure / serializer#---------------------- def dictkeyclean(d):
#---------------------- JSON-RPC 1.0class JsonRpc10:
#---------------------- JSON-RPC 2.0class JsonRpc20:
#========================================= transports#---------------------- transport-loggingimport codecs def log_dummy( message ): def log_file( filename ): def log_filedate( filename ): #---------------------- class Transport:
class TransportSTDINOUT(Transport):
import socket, select
if hasattr(socket, 'AF_UNIX'):
class TransportTcpIp(TransportSocket): #========================================= client side: server proxyclass ServerProxy:
request dispatcherclass _method:
#========================================= server side: Serverclass Server:
#========================================= |
/Users/danielsampetethiyagu/github/image_caption_using_attention/coreNlpUtil.pyc in parseText(sentences)
22 def parseText(sentences):
23
---> 24 parseResult = nlp.parse(sentences)
25
26 if len(parseResult['sentences']) == 1:
/Users/danielsampetethiyagu/github/image_caption_using_attention/coreNlpUtil.pyc in parse(self, text)
16
17 def parse(self, text):
---> 18 return json.loads(self.server.parse(text))
19
20
/Users/danielsampetethiyagu/github/image_caption_using_attention/jsonrpc.py in call(self, *args, **kwargs)
932 return _method(self.__req, "%s.%s" % (self.__name, name))
933 def call(self, *args, **kwargs):
--> 934 return self.__req(self.__name, args, kwargs)
935
936 #=========================================
/Users/danielsampetethiyagu/github/image_caption_using_attention/jsonrpc.py in __req(self, methodname, args, kwargs, id)
905 except Exception,err:
906 raise RPCTransportError(err)
--> 907 resp = self.__data_serializer.loads_response( resp_str )
908 return resp[0]
909
/Users/danielsampetethiyagu/github/image_caption_using_attention/jsonrpc.py in loads_response(self, string)
624 raise RPCInvalidMethodParams(error_data)
625 elif data["error"]["code"] == INTERNAL_ERROR:
--> 626 raise RPCInternalError(error_data)
627 elif data["error"]["code"] == PROCEDURE_EXCEPTION:
628 raise RPCProcedureException(error_data)
RPCInternalError: <RPCFault -32603: 'Internal error.' (None)>
The text was updated successfully, but these errors were encountered: