You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the following code on SciServer:
importnumpyasnpfrompyJHTDBimportlibJHTDBlJHTDB=libJHTDB()
lJHTDB.initialize(exit_on_error=True)
lJHTDB.add_token(r'my-token-here') # commenting this line out does not seem to make a differencewhileTrue:
t=np.random.uniform(0,10.0)
n_pts=50x=np.random.uniform(0,2*np.pi,size=(n_pts,3))
vel=lJHTDB.getData(t,point_coords=x.astype(np.float32), getFunction='getVelocity', sinterp='Lag4', tinterp='PCHIPInt')
print('got velocity successfully')
It'll occasionally make it through the while loop successfully, but hasn't done so more than ~5 times before displaying the following error message:
0: SOAP 1.2 fault: SOAP-ENV:Receiver [no subcode]
"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at TurbulenceService.AuthInfo.LoadUserFromDatabase(String tokenString) in C:\Users\mwang93\Source\Repos\idies\Turbulence\Turbulence\TurbulenceWebServiceLibrary\AuthInfo.cs:line 78
at TurbulenceService.AuthInfo.VerifyToken(String tokenString, Int32 reqsize) in C:\Users\mwang93\Source\Repos\idies\Turbulence\Turbulence\TurbulenceWebServiceLibrary\AuthInfo.cs:line 49
at TurbulenceService.TurbulenceService.GetVelocity(String authToken, String dataset, Single time, SpatialInterpolation spatialInterpolation, TemporalInterpolation temporalInterpolation, Point3[] points, String addr) in C:\Users\mwang93\Source\Repos\idies\Turbulence\Turbulence\WebSite\App_Code\WebService.cs:line 82
--- End of inner exception stack trace ---"
Thank you for any help!
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to run the following code on SciServer:
It'll occasionally make it through the
while
loop successfully, but hasn't done so more than ~5 times before displaying the following error message:Thank you for any help!
The text was updated successfully, but these errors were encountered: